nanolyze: A Summarization Function

Description Usage Arguments Value Examples

View source: R/nanolyze.R

Description

This function allows you aggregate or summarize your data by groups.

Usage

1
nanolyze(df, ..., name = "Param", param_var, na.rm = TRUE, sci_not = FALSE)

Arguments

df

A dataframe.

...

Columns to group by.

name

Prefix name to summary statistics

param_var

The numerical value that you want to summarize.

na.rm

Argument to ignore 'NA' values, defaults to TRUE.

sci_not

Argument to return a separate column with scientific notation, defaults to FALSE.

Value

Summarized values parm_var grouped by .... Output of tidy dataframe of grouped by ... variables, N, mean, standard deviation and standard error labeled according to 'name' argument.

Examples

1
2
nanolyze(mtcars, cyl ,name = "hp", param_var = hp)
nanolyze(iris,Species, name = "Sepal_Width", param_var = Sepal.Width)

nguyens7/tidyNano documentation built on Feb. 27, 2021, 4:14 p.m.