rowMedians {clintools}R Documentation

find median of rows similar to rowMeans (rowMedians)

Description

rowMedians() converts a dataframe to a list of row medians.

Usage

rowMedians(x, na.rm=FALSE)

Arguments

x

a dataframe where median of row should be calculated. (data.frame)

na.rm

Should missing values be omitted fro the calculations? (boolian)

Value

Returns a list of the median of each row in the inputted dataframe.

Examples

## Not run: 
   rowMedians(df[,c("test1","test2","test3")])

## End(Not run)


[Package clintools version 0.9.10.1 Index]