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 "aa[[1],"> mydata[1,[1]]error:unexpected '[' in "aa[1,[" -- View this message in context: http://r.789695.n4.nabble.com/How-to-call-data-elements-tp3430859p3430859.html Sent from the R help mailing list archive at 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.