[R] How to import an excel data file

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Sat Sep 23 23:47:55 CEST 2023


On 23/09/2023 3:35 p.m., Ivan Krylov wrote:
> В Fri, 22 Sep 2023 23:10:58 +0000
> "Parkhurst, David" <parkhurs using indiana.edu> пишет:
> 
>> Its location in my Mac files is
>> DFPfiles/ae/FriendsMonroe/KurtzData.csv How exactly---What _,
>> etc.---do I type with its name in the read_excel() function?
> 
> In RGui on Windows, file.choose() opens a dialog window letting the
> user choose a file interactively. Do you get a similar prompt if you run
> file.choose() in R.app? Choose the file, and it will return a string
> that would be most certainly suitable for read.csv(), read_excel(), and
> other functions that accept file paths.


file.choose() exists on all platforms.  choose.files() only exists on 
Windows.

Duncan Murdoch



More information about the R-help mailing list