Re: [R] Problems using imported data

2007-07-03 Thread Stephen Tucker
Actually, I believe attach() and detached() is discouraged nowadays... x <- read.delim("Filename.txt", header=TRUE) You can access your data by column: x[,1] x[,c(1,3)] or if your first column is named "Col1" and the third "Col3", x[,"Col1"] x[,c("Col1","Col3")] and you can do the same to acces

Re: [R] Problems using imported data

2007-07-03 Thread jim holtman
You have to read the data into an object: e.g., mydata <- read.delim("Filename.txt", header=TRUE) and then you can access the data with 'mydata'. If you had "test" as a column header,then mydata$test will access that data. On 7/3/07, Susie Iredale <[EMAIL PROTECTED]> wrote: > > > > > (Repeat

[R] Problems using imported data

2007-07-03 Thread Susie Iredale
(Repeat of previous HTML version) Hello all, I am a new R user and I have finally imported my data using >read.delim("Filename.txt", header=TRUE) after some difficulty, by changing >file directories (a hint to anyone who might be stuck there). However, I am now stuck trying to use my data.