hello all, will you plz tell me how can i convert RData files to txt,,,
mykhwab at gmail.com wrote:> hello all, > will you plz tell me how can i convert RData files to txt,,, > > ______________________________________________ > R-help at 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. >Hi, Depends on what is in the RData files, which can be any R object. So there is no single answer as long as you don't provide more information. So please read the posting guide for more information. In general you can use the load() command to the RData file, and if it is for example a csv file you can use write.csv to write it to ascii. cheers Paul -- Drs. Paul Hiemstra Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 274 3113 Mon-Tue Phone: +3130 253 5773 Wed-Fri http://intamap.geo.uu.nl/~paul
You can try something about like this: lapply(ls(), function(obj)cat("\n", obj, "<-", paste(deparse(get(obj)), collapse = "\n"), file = 'RData.txt', append = TRUE)) source('RData.txt') On Mon, Oct 5, 2009 at 4:00 AM, <mykhwab at gmail.com> wrote:> hello all, > will you plz tell me how can i convert RData files to txt,,, > > ______________________________________________ > R-help at 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. >-- Henrique Dallazuanna Curitiba-Paran?-Brasil 25? 25' 40" S 49? 16' 22" O