Description Usage Arguments Value Examples
Credit: Adapted from Stephen Cohen on twitter
1 | col_medians(df, na.rm)
|
df |
A data frame to process |
na.rm |
A boolean. Default: False (remove NA values) |
column medians
1 2 3 4 | library(statshelpR)
df <- data.frame(x=c(1.0, 1.5, 2.0, 2.5, 3.0),
y=c(2.0, 3.0, 4.0, 5.0, 6.0))
print(col_medians(df, na.rm=FALSE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.