Description Usage Arguments Value Author(s) Examples
View source: R/FUNCTION_Overall.R
Calculate overall mean, median, sd and se of all species
1 | overallFun(dta, reg = 'Region', anty, agFac = agFun(...),...)
|
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 |
Returns a data.frame with mean,median,sd and se for each region. Organised as Table 4 extended (in references)
Marisa Vedor, Ivo da Costa, Nuno Queiroz
1 2 3 | # Read data
tbl <- data('SharkData')
overallFun(dta = tbl, reg = 'Region', anty = 'Ov_mean', agFac = rep(1, nrow(tbl)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.