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 <parkh...@indiana.edu> wrote: > > 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 > various lines like: > > temps <- > read.table("c:\\Users\\DFP\\Documents\\ah\\house\\HouseTemps.txt",header=T,row.names=1) > > based on my windows DOS experience, but nothing I try works. So my question > is, what do complete file names look like in a mac? > > I tried Apple support, but they couldn't help me with R. > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.