Skip to content
Prev 13682 / 15075 Next

I'm new to R in a Mac. How do I specify the path in read.table()?

Just use forward slashes, backslashes is a Windows thing. I.e.

read.table("/Users/DFP/Desktop/Monroe319Ecoli.txt")

should do it. A generic trick is

x <- file.choose()
dd <- read.table(x)

(and then possible have a look at x)

-pd