[R] Counting defined character within String
Kunzler, Andreas
a.kunzler at bzaek.de
Mon Jul 5 16:04:00 CEST 2010
Dear list,
I'm looking for a way to count the number of "|" within an object.
The character "|" is used to separated ids.
Assume a data (d) structure like
Var
NA
NA
NA
NA
NA
1
1|2
1|22|45
3
4b|24789
I need to know the maximum number of ids within one object. In this case 3 (1|22|45)
Does anybody know a better way?
Thanks
Mit freundlichen Grüßen
Andreas Kunzler
____________________________
Bundeszahnärztekammer (BZÄK)
Chausseestraße 13
10115 Berlin
Tel.: 030 40005-113
Fax: 030 40005-119
E-Mail: a.kunzler at bzaek.de
More information about the R-help
mailing list