Re: [R] data.frame

About this list Date view Thread view Subject view Author view

From: Kjetil Kjernsmo (kjetil.kjernsmo@astro.uio.no)
Date: Mon 18 Jun 2001 - 03:04:52 EST


Message-ID: <Pine.OSF.4.30.0106171900330.4392-100000@alnair.uio.no>

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@astro.uio.no                                - Piet Hein
Homepage <URL:http://www.astro.uio.no/~kjetikj/>
Webmaster@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@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:45 EST