overallFun: Overall tables

Description Usage Arguments Value Author(s) Examples

View source: R/FUNCTION_Overall.R

Description

Calculate overall mean, median, sd and se of all species

Usage

1
overallFun(dta, reg = 'Region', anty, agFac = agFun(...),...)

Arguments

dta

Data.frame. Input data, in the data.frame format

reg

Character. Name of column with region information

anty

Character. Name of column with type of analyses to be done

agFac

Vector. Factor of aggregation for summary data

Value

Returns a data.frame with mean,median,sd and se for each region. Organised as Table 4 extended (in references)

Author(s)

Marisa Vedor, Ivo da Costa, Nuno Queiroz

Examples

1
2
3
# Read data
tbl <- data('SharkData')
overallFun(dta = tbl, reg = 'Region', anty = 'Ov_mean', agFac = rep(1, nrow(tbl)))

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