standardize_units | R Documentation |
Converts all columns in a data.frame to use the same system of units
standardize_units( data, .cols = tidyselect::eval_select(is.numeric, data), Units = NULL )
data |
A data.frame |
.cols |
The columns from which the Units are converted (by default, all numeric). |
Units |
Character of the units of measurement (e.g. "m" or "ft") or default NULL |
Data.frame with all columns in .cols
(by default, all numeric columns) converted to use the units defined in Units
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.