Re: [R] Accessing single element of data.frame

2010-07-29 Thread vacas
I am so thankful to Jannis and David for answering. Surely, it did work and I am thankful to you all. -- View this message in context: http://r.789695.n4.nabble.com/Accessing-single-element-of-data-frame-tp2302770p2307563.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Accessing single element of data.frame

2010-07-26 Thread David Winsemius
On Jul 26, 2010, at 3:22 PM, vacas wrote: Hi I am new to R. I am having this problem t1 <- read.csv("myfile.csv") t2 <- data.frame(t1) which have 10 row and 10 columns t2[1,1] does not give the first element but it gives the levels, how can I fix it. It gives you both. Factors are general

Re: [R] Accessing single element of data.frame

2010-07-26 Thread David Winsemius
On Jul 26, 2010, at 3:22 PM, vacas wrote: Hi I am new to R. I am having this problem t1 <- read.csv("myfile.csv") t2 <- data.frame(t1) which have 10 row and 10 columns t2[1,1] does not give the first element but it gives the levels, how can I fix it. It gives you both. Factors are general

Re: [R] Accessing single element of data.frame

2010-07-26 Thread Jannis
The solution to (most R problems) is as follows: 1.if asking for help include reproducible examples including parts of your data otherwise we can just guess what kind of data you have. 2. In general, refer to the help pages of the functions you use ( help(read.csv),help(data.frame) ) ( i ha