data.frame
On Sun, 17 Jun 2001, Ricardo Gon?alves wrote:
This is a question from a beginner. I am using R for Windows and every time I try to load my data set, i. e., x <- data.frame (x), I receive the message "object x not found". How can I change my work directory?
Eh, well, I don't know in Windows, but I've got a strong feeling that's
not really your problem. :-)
You see, if you don't have anything loaded that's called x, you need to
load it from disk. And if x is something that you have loaded, then it
seldom makes sense to run it through data.frame(x).
I think what you need is read.table()
For example:
x <- read.table("The-file-where-I-ve-got-my-data.dat")
Though I may have misunderstood completely your problem... :-)
Best,
Kjetil
Kjetil Kjernsmo Graduate astronomy-student Problems worthy of attack University of Oslo, Norway Prove their worth by hitting back E-mail: kjetikj at astro.uio.no - Piet Hein Homepage <URL:http://www.astro.uio.no/~kjetikj/> Webmaster at skepsis.no -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._