bloodmeans: Extract Mean Values of Blood Biomarkers

Description Usage Arguments Value Author(s) Examples

View source: R/bloodmeans.R

Description

This function accepts a dataframe as input and extracts the mean value of each numeric variable.

Usage

1

Arguments

df

a data.frame with at least one numeric variable in order to get a non-empty result.

var

NULL (default) or the unquoted name of the variable by which to group the input df.

Value

a data.frame with the mean values of each numeric

Author(s)

John Doe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
library(magrittr)
data.frame(x1 = c(1,2,3), x2 = c(4,5,6)) %>%
  bloodstats::bloodmeans()

# Grouped bloodmeans
bloodstats::df_example %>%
  bloodstats::bloodmeans(var = group)

## End(Not run)

mariakalimeri/bloodstats documentation built on Oct. 26, 2020, 9:19 a.m.