[R] How to call data elements

B77S bps0002 at auburn.edu
Wed Apr 6 16:19:59 CEST 2011


assuming this is from a list

mydata[[1]][1]  

and 

mydata[[1]][7]

??




Wonjae Lee wrote:
> 
> Hi, 
> 
> I have a stupid and simple question. 
> Please forgive me. 
> 
> In an example below, please tell me how to call  "1947" in mydata. 
> Thank you in advance. 
> 
> Wonjae 
> 
>> mydata 
> [[1]] 
> [1] "1947"    "83"      "234.289" "235.6"   "159"     "107.608" "1947"   
> [8] "60.323" 
> 
>> mydata[[1],1] 
> error:unexpected ',' in "mydata[[1]," 
>> mydata[1,[1]] 
> error:unexpected '[' in "mydata[1,["
> 

--
View this message in context: http://r.789695.n4.nabble.com/How-to-call-data-elements-tp3430859p3430881.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list