Skip to content

data.frame

4 messages · Ricardo Gonçalves, Kjetil Kjernsmo, Brian Ripley +1 more

#
Dear R:

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?

Thanks

Rick.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20010617/35ce6138/attachment.html
#
On Sun, 17 Jun 2001, Ricardo Gon?alves wrote:

            
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
#
On Sun, 17 Jun 2001, [iso-8859-1] Ricardo Gonçalves wrote:

            
try to load my data set, i. e., x <- data.frame (x), I receive the message
"object x not found".

Well, it won't be.  That does not load a dataset.  Try ?read.table, for
example, or read the `R Data Import/Export Manual' (on the help menu).
See the rw-FAQ, question 5.2

  
    
#
At 01:41 PM 6/17/01 -0300, you wrote:
setwd(dir)
getwd()

See help(setwd)


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._