agFun: Aggregation Function

Description Usage Arguments Author(s) Examples

View source: R/FUNCTION_aggregate.R

Description

Function to create summary tables: Aggregated mean, median, sd and se

Usage

1
agFun(dta, anty, ...)

Arguments

dta

Input data, in the data.frame format

anty

Name of column with type of analyses to be done

...

Further arguments to be passed to the aggregation function. Vector of aggregation factor.

Author(s)

Marisa Vedor, Ivo da Costa, Nuno Queiroz

Examples

1
2
3
4
# Read shark data
tbl <- data('SharkData')

agFun(dta = tbl, anty = 'Ov_mean', tbl$Spp)

GlobalSharkMovement/GSMP_rpackage documentation built on Feb. 13, 2021, 8:01 a.m.