rowMedians | R Documentation |
rowMedians()
converts a dataframe to a list of row medians.
rowMedians(x, na.rm=FALSE)
x |
a dataframe where median of row should be calculated. ( |
na.rm |
Should missing values be omitted fro the calculations? ( |
Returns a list of the median of each row in the inputted dataframe.
## Not run:
rowMedians(df[,c("test1","test2","test3")])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.