group.p | R Documentation |
Adds the proportion of occurrences of each level to the corresponding level name.
group.p(group, weights=NULL)
group |
A group variable. |
weights |
Vector of weights of same length as the group variable. |
The group
variable can be a factor or a numerical variable. In the latter case it is transformed to a factor.
Gilbert Ritschard
seqplot
.
data(actcal)
actcal <- actcal[1:100,]
actcal.seq <- seqdef(actcal[,13:24])
seqdplot(actcal.seq, group=group.p(actcal$sex))
levels(group.p(actcal$sex, weights=runif(length(actcal$sex))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.