Hi.... I have one data set with 20 variables. I want to find the length of each variables at a time. Please help me .. Thanks in advance............ -- View this message in context: http://r.789695.n4.nabble.com/How-to-find-the-lenth-of-more-than-ten-variables-tp4651751.html Sent from the R help mailing list archive at Nabble.com.
How to find the lenth of more than ten variables?
3 messages · killerkarthick, Uwe Ligges, Jim Lemon
On 03.12.2012 05:27, killerkarthick wrote:
Hi.... I have one data set with 20 variables. I want to find the length of each variables at a time. Please help me .. Thanks in advance............
Within a data.frame, all columns have the same length that is given by nrow(). Looks like you have to rephrase your question so that we understand it.... Uwe Ligges
-- View this message in context: http://r.789695.n4.nabble.com/How-to-find-the-lenth-of-more-than-ten-variables-tp4651751.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.
On 12/03/2012 03:27 PM, killerkarthick wrote:
Hi.... I have one data set with 20 variables. I want to find the length of each variables at a time. Please help me .. Thanks in advance............
Hi killerkarthick, This may do what you want: unlist(lapply(my_data_set,length)) if the data set is a list. Jim