powered by
Extract transition information from different objects
from_to_pairs(t_mat, ...)from_to_pairs2(t_mat, ...)# S3 method for data.frame from_to_pairs(t_mat, from_col = "from", to_col = "to", ...)
from_to_pairs2(t_mat, ...)
# S3 method for data.frame from_to_pairs(t_mat, from_col = "from", to_col = "to", ...)
an object that contains information about possible transitions.
The name of the column in the data frame that contains "from" states.
The name of the column in the data frame that contains "to" states.
if (FALSE) { df = data.frame(id = c(1,1, 2,2), from = c(1, 1, 2, 2), to = c(2, 3, 2, 2)) from_to_pairs(df) }
Run the code above in your browser using DataLab