sagarnikam123
2012-Feb-06 07:15 UTC
[R] i want to retrieve count for each freq of given summary from table()
i want to retrieve count for each freq of given summary from table() e.g. "A" cout,"B" count & save it in different variables> table(dil)dil A C D E F G H I K L M N P Q 49433 10361 38490 44549 27182 44947 16310 39002 39829 58805 11228 29320 28900 25802 R S T V W X Y 32674 40066 36052 45866 9405 1 23885 -- View this message in context: http://r.789695.n4.nabble.com/i-want-to-retrieve-count-for-each-freq-of-given-summary-from-table-tp4360579p4360579.html Sent from the R help mailing list archive at Nabble.com.
Petr PIKAL
2012-Feb-06 07:40 UTC
[R] i want to retrieve count for each freq of given summary from table()
Hi Can you be more specific? What else do you want? x<-table(sample(letters[1:5], 100, replace=TRUE)) x a b c d e 20 14 23 23 20 as.numeric(x) [1] 20 14 23 23 20 y<-as.numeric(x) Regards Petr> > i want to retrieve count for each freq of given summary from table()e.g. "A"> cout,"B" count > & save it in different variables > > table(dil) > dil > A C D E F G H I K L M N> P Q > 49433 10361 38490 44549 27182 44947 16310 39002 39829 58805 11228 29320 > 28900 25802 > R S T V W X Y > 32674 40066 36052 45866 9405 1 23885 > > -- > View this message in context: http://r.789695.n4.nabble.com/i-want-to- >retrieve-count-for-each-freq-of-given-summary-from-table-tp4360579p4360579.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 guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.