nanocount: A Sum Function

Description Usage Arguments Value Examples

View source: R/nanocount.R

Description

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

Usage

1
nanocount(df, ..., name = "Particle", param_var, na.rm = TRUE)

Arguments

df

A dataframe.

...

Columns to group by.

name

Prefix name to sum function.

param_var

The numerical value that you want to sum.

na.rm

Argument for ignore 'NA' values

Value

Sum of particle count parm_var grouped by .... Output of tidy dataframe of sums grouped by ... labeled according to 'name' argument.

Examples

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

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