Hello,
One more thing, if you have the data as strings of states/space/group,
you can split it in vectors state/group with
# This is your data example
x <- c(
"1100222101 1",
"020010 3",
"0010101022 2"
)
mat <- do.call(rbind, strsplit(x, " "))
But this creates a matrix, so you'll need t
Hello,
It doesn't seem very complicated.
First of all, for the function fun below to work, you need the data not
as strings of staes followed by a space followed by a broup number, but
in two columns vectors, a character vector of states and a vector of
groups. The vector of groups can be of c
2 matches
Mail list logo