Skip to content
Back to formatted view

Raw Message

Message-ID: <1302099599043-3430881.post@n4.nabble.com>
Date: 2011-04-06T14:19:59Z
From: Brad Patrick Schneid
Subject: How to call data elements
In-Reply-To: <1302098638998-3430859.post@n4.nabble.com>

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.