View source: R/normalize_column.R
normalize_column | R Documentation |
A function that normalizes one column or vector. It returns the new column or vector.
normalize_column(column, na.rm = FALSE)
column |
A vector (or column) to be normalized |
na.rm |
A boolean that regulates if the NA values are excluded. Default is FALSE. |
Returns a normilized new column to overwrite the old one or add to a new column.
Sam Loontjens
mydata$A <- normalize_column(mydata$A)
or
mydata$normA <- normalize_column(mydata$A)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.