Щелкните правой кнопкой мыши файл CSV для чтения в RStudio?

350
NewNameStat

Мне бы хотелось иметь возможность щелкнуть правой кнопкой мыши файл .csv и прочитать его в RStudio (IDE для языка статистики R ). Когда я говорю «читай это в RStudio», я имею в виду открыть RStudio с линией, которая dat<-read.csv(file location + file name)уже там.

Это возможно? Как бы я это сделал?

1
Что происходит, когда вы щелкаете правой кнопкой мыши, выбираете open-with и выбираете RStudio? fixer1234 9 лет назад 1
@ fixer1234 Он просто выгружает весь CSV-файл в новый R-скрипт. NewNameStat 9 лет назад 0

1 ответ на вопрос

0
Badger

As far as I've ever seen this is not possible for one simple reason. What object is R to store the data in when invoked?

The beauty of R is its flexibility in object names when storing data. A storage protocol would be required and then it would need to check to make sure the item isn't overwriting a previously stored item. Long and short of it, it'd be easier to code in the read.csv() than it would be to add this functionality in the program itself.

Похожие вопросы