All, Usually when I save a variable I have ascii = FALSE since I usually load the variable via the load(variable) command and do not need to view the variable outside of R. When I set ascii = TRUE and view the variable outside of R in a text editor, I notice additional characters (starting w/ RDA2 ...) before the first actual value in the vector. Is there are way to save to ascii such that this does not happen? I checked the help under save and didn't see anything. I apologize in advance for this overly simplistic question. Cheers, Dave ps - please reply directly to afshar at miami.edu
You could try using functions like 'dput()' or 'dump()'. These may or may not be equivalent to 'save()' depending on how complex the object to be saved is. -roger P.S. Asking people to respond to a different email address is not a good way to get responses! Afshartous, David wrote:> All, > > Usually when I save a variable I have ascii = FALSE since I usually > load the variable via the load(variable) command and do not need to > view the variable outside of R. > > When I set ascii = TRUE and view the variable outside of R in a text editor, > I notice additional characters (starting w/ RDA2 ...) before the first actual value > in the vector. > > Is there are way to save to ascii such that this does not happen? > I checked the help under save and didn't see anything. I apologize > in advance for this overly simplistic question. > > Cheers, > Dave > ps - please reply directly to afshar at miami.edu > > ______________________________________________ > 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 >-- Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/
Perhaps use dput? HTH, Andy From: Afshartous, David> > All, > > Usually when I save a variable I have ascii = FALSE since I usually > load the variable via the load(variable) command and do not need to > view the variable outside of R. > > When I set ascii = TRUE and view the variable outside of R in > a text editor, > I notice additional characters (starting w/ RDA2 ...) before > the first actual value > in the vector. > > Is there are way to save to ascii such that this does not happen? > I checked the help under save and didn't see anything. I apologize > in advance for this overly simplistic question. > > Cheers, > Dave > ps - please reply directly to afshar at miami.edu > > ______________________________________________ > 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 > >