Re: [R] File names for mac newby

2020-01-22 Thread David
Neat.  Thanks. On 1/22/20 10:17 AM, Bert Gunter wrote: > > Use ?file.choose to choose a file interactively and avoid typing paths: > > read.table(file.choose(), header = TRUE, etc) > > will open a finder window to navigate to and click on the file you want. > > -- Bert > > Bert Gunter > > "The

Re: [R] File names for mac newby

2020-01-22 Thread Bert Gunter
Use ?file.choose to choose a file interactively and avoid typing paths: read.table(file.choose(), header = TRUE, etc) will open a finder window to navigate to and click on the file you want. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and stic

Re: [R] File names for mac newby

2020-01-21 Thread R. Mark Sharp via R-help
Open the terminal application in the Utilities folder. Select the file you want to use in R in a Finder window and drag it to the terminal applications command line prompt and then release the file. The absolute path of the file will be entered in the command line of the terminal’s window. Thoug

Re: [R] File names for mac newby

2020-01-21 Thread Kevin Thorpe
You would also need to drop the c: as that is a DOS/Windows thing. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.tho...@ut

Re: [R] File names for mac newby

2020-01-21 Thread James Spottiswoode
OSX is based on BSD UNIX so paths use the forward slash as separator, e.g. temps <- read.table("c:/Users/DFP/Documents/ah/house/HouseTemps.txt",header=T,row.names=1) Best James > On Jan 21, 2020, at 9:20 AM, David wrote: > > I moved to a mac a few months ago after years in windows, and I'm st

Re: [R] File names for mac newby

2020-01-21 Thread William Michels via R-help
Hi David, Often on a Mac you can "right click" (or on a laptop--press down with two fingers), and a pop-up will give you the option to "Copy File Path". (You can also find this option in a Finder window under the "Finder -> Services" menu bar) .This is the path you should use to import your file i

[R] File names for mac newby

2020-01-21 Thread David
I moved to a mac a few months ago after years in windows, and I'm still learning basics.  I'm wanting to create a data frame based on a text file called HouseTemps.txt.  That's a file within one called house which is within one called ah.  That may further be in one called  Documents.  I tried