kjetil.kjernsmo at astro.uio.no
Sun Jun 17 19:04:52 CEST 2001
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()
x <- read.table("The-file-where-I-ve-got-my-data.dat")
Though I may have misunderstood completely your problem... :-)
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
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
More information about the R-help