Displaying 1 result from an estimated 1 matches for "wwxxyy".
Did you mean:
wwxxyyzz
2009 Feb 18
2
Counting/processing a character vector
...02
20110000
24000000
40320203
45140000
45630600 == 7 "species" present.
To be more specific, I don't count 45630000 (row 9) because there exists
a sppcode for this 'id' where either of the next two pairs of digits are
not all 0's.
In words, I want to count all rows where WWXXYYZZ are ZZ != 00, then,
rows where ZZ == 00 only if the WWXXYY combination has not been counted
yet.
An example data set has been placed in my University web space and can
be read into R with the following:
## read example csv data
dat <- read.csv(url("http://www.homepages.ucl.ac.uk/~ucfagl...