summarygrid: summarygrid generates some statistics for the variable...

Description Usage Arguments Value Examples

Description

summarygrid takes the prefix of the variable in the data.frame from getlatlong and calculates summary statistics. These include the arithmetic mean, the bias-corrected geometric mean, the number of NAs, and the number of positive values

Usage

1
summarygrid(dat, whchvar)

Arguments

dat

the sub-set of the data.frame from getlatlong obtained from the function getpoints(view,abdat)

whchvar

the prefix of the variable of interest. This can be "blkg" (or glkg if exploring a greenlip data set), "days","mins", "divers", "kgday".

Value

a matrix of summary statistics for each year available and the total if present

Examples

1
2
3
4
5
6
7
## Not run: 
 # ab <- readRDS(paste0(datadir,"G1Ha_2018_10_23.rds"))#get spatial obj
 # abdat <- getlatlong(ab)     # convert to data.frame + lat long
 # addat <- getsubblock(c("13C","13D","13E"),abdat)
 # summarygrid(addat,"blkg")

## End(Not run)

haddonm/abspatial documentation built on June 7, 2019, 9:54 a.m.