Re: [R] How to call data elements

From: B77S <bps0002_at_auburn.edu>
Date: Wed, 06 Apr 2011 07:19:59 -0700 (PDT)

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 06 Apr 2011 - 20:18:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 06 Apr 2011 - 20:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive