Nothing
statetable.fmsm = function(state, subject, data = NULL){
if (!is.null(data)) {
data <- as.data.frame(data)
state <- data[,state]
}
n <- length(state)
if (!is.null(data)){
if (missing(subject)) {
subject <- rep(1, n)
} else {
subject <- data[,subject]
}
}
subject <- match(subject, unique(subject))
prevsubj <- c(NA, subject[1:(n - 1)])
previous <- c(NA, state[1:(n - 1)])
previous[prevsubj != subject] <- NA
ntrans <- table(previous, state)
names(dimnames(ntrans)) <- c("from", "to")
ntrans
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.