 Hi Rahul,


try to  see 
?read.table
 you may substitute commas with a NA
 
and then sum the NA.

I hope that it can help.


Cheers Anna



Anna Freni Sterrantino
Ph.D Student 
Department of Statistics
University of Bologna, Italy
via Belle Arti 41, 40124 BO.




________________________________
Da: "Rahul-A.Agarwal@ubs.com" <Rahul-A.Agarwal@ubs.com>
A: r-help@r-project.org
Inviato: Giovedì 8 gennaio 2009, 10:38:05
Oggetto: [R] Dataframe with unequal rows

I have a data frame with unequal rows length separated by comma.....I
have to read the data first and then calculate number of comma in each
row...how can I do that

Regards Rahul

______________________________________________
R-help@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.



      
	[[alternative HTML version deleted]]


