[R] How to save a data set as .txt on fly?
Stephen Liu
satimis at yahoo.com
Fri Nov 26 04:45:42 CET 2010
Hi folks,
Win7 64bit
I tried to save DNase, a data set on database, as .txt file for future use with
load.
I can't do it on fly;
> save(DNase, file="C:/Users/satimis/Documents/aaa.txt")
> load(file="C:/Users/satimis/Documents/aaa.txt")
> aaa
Error: object 'aaa' not found
> aaa.txt
Error: object 'aaa.txt' not found
I must perform following steps;
> aaa<-DNase
> save(aaa, file="C:/Users/satimis/Documents/aaa.txt")
> load(file="C:/Users/satimis/Documents/aaa.txt")
> aaa
Run conc density
1 1 0.04882812 0.017
2 1 0.04882812 0.018
3 1 0.19531250 0.121
....
Is there any way doing it on fly?
Besides aaa.txt can't be read direct with Notepad nor WordPad
TIA
B.R.
Stephen L
More information about the R-help
mailing list