Gundala Viswanath
2008-Aug-05 13:14 UTC
[R] Extracting Names of Named List (Index of Hash)
Hi, How can I extract the names of the following list:> str(y)List of 815 $ 200052_s_at : num [1:5] -1067 -1064 -1063 -1062 -1059 $ 200071_at : num [1:5] -960 -954 -954 -949 -975 $ 200084_at : num [1:5] -1136 -1133 -1128 -1129 -1126 ... Thus in the end I want to get the array: [1] "200052_s_at" "200071_at" "200084_at" .... - Gundala Viswanath Jakarta - Indonesia
Henrique Dallazuanna
2008-Aug-05 13:54 UTC
[R] Extracting Names of Named List (Index of Hash)
names(y) On Tue, Aug 5, 2008 at 10:14 AM, Gundala Viswanath <gundalav at gmail.com> wrote:> Hi, > > How can I extract the names of the following > list: > >> str(y) > List of 815 > $ 200052_s_at : num [1:5] -1067 -1064 -1063 -1062 -1059 > $ 200071_at : num [1:5] -960 -954 -954 -949 -975 > $ 200084_at : num [1:5] -1136 -1133 -1128 -1129 -1126 > ... > > Thus in the end I want to get the array: > > [1] "200052_s_at" "200071_at" "200084_at" .... > > - Gundala Viswanath > Jakarta - Indonesia > > ______________________________________________ > 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. >-- Henrique Dallazuanna Curitiba-Paran?-Brasil 25? 25' 40" S 49? 16' 22" O