pavg: Mean per row

View source: R/RcppExports.R

pavgR Documentation

Mean per row

Description

Returns the average of the numeric values, row per row (similar as pmin)

Usage

pavg(df, na_rm)

Arguments

df

DataFrame. Contains only numerical values

na_rm,

boolean. Accept of not the NAs

Value

NumericVector or mean values.

Examples

pavg( data.frame(a = c(1,2,3), b = c(2,3,3)), na_rm = TRUE)

bronnimannj/jbutilities documentation built on July 2, 2023, 4:09 p.m.