Displaying 1 result from an estimated 1 matches for "shortgroupvector".
2011 Mar 21
1
split(factor, shortGroupVector) gives incorrect results in R 2.12.2
When split's x argument has a class attribute and the
grouping vector, f, is shorter than x then split gives
the wrong result. It appears to not extend f to the length
of x before doing the split. E.g.,
> split(factor(letters[1:3]), "Group one") # expect all 3 elements in
the single group
$`Group one`
[1] a
Levels: a b c
> split(factor(letters[1:3]),