matrixToCfd | R Documentation |
Convert a matrix to a cfda data.frame
matrixToCfd(X, times = NULL, labels = NULL, byrow = FALSE)
X |
matrix containing the states |
times |
time values. If |
labels |
id labels. If |
byrow |
if |
a data.frame in the cfda format
Other format:
convertToCfd()
,
cut_data()
,
remove_duplicated_states()
x <- matrix(
c(
"a", "b", "c", "c",
"c", "a", "a", "a",
"b", "c", "a", "b"
),
ncol = 4, byrow = TRUE,
dimnames = list(NULL, paste0("ind", 1:4))
)
matrixToCfd(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.