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
.
Da: "rahul-a.agar...@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...ho
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
4 matches
Mail list logo