powered by
Scale and/or center the numeric columns of a data frame or tibble
center_df(data, sc = FALSE, cen = TRUE)
A data frame or tibble
Scale the variables (default FALSE)
Center the variables on their means (default TRUE)
An object of the same class as `data`, with the numeric columns scaled or centered as requested
Takes a data frame or tibble as input and scales and/or centers the numeric columns. By default, centers but doesn't scale
# NOT RUN { head(center_df(organdata)) # }
Run the code above in your browser using DataLab