I doubt that you have a dataframe with those features, since R would
not allow such an event; more likely you have data in a file. If your
goal is to determine the number of items, then you should definitely
look at:
?count.fields
count.fields(filename, sep=",") # would give you 1 + the n
Hello,
You are not very precise there. Do you mean that the rows in your text
file do not all have the same number of separators (commas, in your
case)?
Best regards,
Carlos J. Gil Bellosta
http://www.datanalytics.com
On Thu, 2009-01-08 at 04:38 -0500, rahul-a.agar...@ubs.com wrote:
> I have a
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.
D
3 matches
Mail list logo