Description Usage Arguments Value
View source: R/scale_as_matrix.R
Adapted version of scale
for tibble objects
1 | scale_as_matrix(data, key_col, value_col, scale = TRUE, center = TRUE)
|
data |
a tibble containing a matrix of data |
key_col |
Strings giving names of key and value columns to create |
scale |
either a logical value or a numeric-alike vector of length equal to the number of columns of |
center |
either a logical value or numeric-alike vector of length equal to the number of columns in |
A tibble with the same shape as data
, with the columns scaled.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.