Use this line instead: table <- read.table(fileIchoose <- file.choose(), skip = 1)
This will have the side effect of creating fileIchoose as a variable containing a file path. Michael On Tue, Feb 28, 2012 at 8:34 AM, sagarnikam123 <sagarnikam...@gmail.com> wrote: > i open a table > table<-read.table(file.choose(),skip=1) > > at sometime i forget which file i open,so i want file name/file path > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/how-to-get-file-name-file-path-tp4428126p4428126.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > 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. ______________________________________________ R-help@r-project.org mailing list 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.