Description Usage Arguments Value Examples
row.names are added as row_names column as the first column of the tibble. Function does not fail when object cannot be converted to tibble thus can be used to map over lists with various variable types such as modells and objects.
1 |
x |
any variable |
a tibble or if the input variable is neither matrix dataframe or tibble the original input object.
1 2 3 4 5 6 7 8 | mat = as.matrix(mtcars)
head( mat, 10)
f_manip_matrix_2_tibble( mat )
# convert all matrices from a list
pca = prcomp( mtcars ) %>%
map( f_manip_matrix_2_tibble )
pca
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.