Hi,

> He is telling you that it is not surprising that 'aaa' does not exist,
> if the object you saved was called DNase

No, such a file.  Just rechecked it with Win7 search command. (Win7 has been 
rebooted)


> Again - you need to use the name of the object which happens to be
> 'DNase' - not 'dnase', 'dnase.txt' or 'aaa'

Thanks.

I have this idea at the beginning.  A further thought changed my mind.

On R console
> DNase
displays the content of the data set.

If I save the file in the same name.  It may confuse me on running DNase whether 
the output is the content of the data set OR from the file created.

Other advice noted.  Thanks


B.R.
Stephen L





________________________________
From: Philipp Pagel <p.pagel@wzw.tum.de>
To: r-help@r-project.org
Sent: Fri, November 26, 2010 5:07:40 PM
Subject: Re: [R] How to save a data set as .txt on fly?

On Thu, Nov 25, 2010 at 09:23:17PM -0800, Stephen Liu wrote:
> Hi David,
> 
> 
> > But you didn't try:
> 
> > DNase    # which was after all the name of the object you saved.
> 
> Sorry I don't follow.

He is telling you that it is not surprising that 'aaa' does not exist,
if the object you saved was called DNase


> I can't do it with following steps:
> > DNase
> > save(DNase, file="C:/Users/satimis/Documents/dnase.txt")
> > load(file="C:/Users/satimis/Documents/dnase.txt")
> > dnase
> Error: object 'dnase' not found
> > dnase.txt
> Error: object 'dnase.txt' not found

Again - you need to use the name of the object which happens to be
'DNase' - not 'dnase', 'dnase.txt' or 'aaa'

> I'm curious to know why the .txt file created in this way can't be read with 
> Notpad and WordPad?

It can be read with them - only it does not look the way you expected.
If you want to export data for use in other software funcitons like
write.table may be of interest to you. Load and save are meant for use
in R, only.

cu
    Philipp

-- 
Dr. Philipp Pagel
Lehrstuhl für Genomorientierte Bioinformatik
Technische Universität München
Wissenschaftszentrum Weihenstephan
Maximus-von-Imhof-Forum 3
85354 Freising, Germany
http://webclu.bio.wzw.tum.de/~pagel/

______________________________________________
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.



	[[alternative HTML version deleted]]

