[R] meta characters in file path

Tony Plate tplate at acm.org
Thu Aug 3 22:41:55 CEST 2006


What is the problem you are having?  Seems to work fine for me running 
under Windows2000:

 > write.table(data.frame(a=1:3,b=4:6), file="@# x.csv", sep=",")
 > read.csv(file="@# x.csv")
   a b
1 1 4
2 2 5
3 3 6
 > sessionInfo()
Version 2.3.1 (2006-06-01)
i386-pc-mingw32

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"

other attached packages:
      XML
"0.99-8"
 >

Li,Qinghong,ST.LOUIS,Molecular Biology wrote:
> Hi,
> 
> I need to read in some files. The file names contain come meta characters such as @, #, and white spaces etc, In read.csv, file= option, is there any way that one can make the function to recognize a file path with those characters?
> 
> Thanks
> Johnny
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list