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
Hi all,
I am working with a capture-recapture analyses and my data set consists of a
typical set of encounter histories.
Thus, for each individual I have a string (same length for all the
individuals) consisting of 0 (not seen) and other numbers (seen in state
"1", seen in state "2", etc. where
3 matches
Mail list logo