new_age_matrix | R Documentation |
A matrix that knows about its age breaks - which are by default provided as its rownames. Mostly intended for internal use.
new_age_matrix(matrix, age_breaks)
matrix |
numeric matrix |
age_breaks |
character vector of age breaks, by default the rownames. |
matrix with age breaks attribute
age_break_names <- c("[0,5)", "[5,10)", "[10, 15)")
age_mat <- matrix(
runif(9),
nrow = 3,
ncol = 3,
dimnames = list(
age_break_names,
age_break_names
)
)
new_age_matrix(
age_mat,
age_breaks = age_break_names
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.