Description Usage Arguments Examples
This function takes a vector of data and scales it to
lie between the values 0 and 1. It is intended as a helper function
and can be used with map
1 | standardize(x)
|
x |
A numeric vector |
1 2 3 4 5 6 7 8 | # Standardize a vector
x <- rnorm(100, 3, 5)
standardize(x)
# Standardize the columns of a data frame
iris %>%
select(-Species) %>%
purrr::dmap(standardize)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.