checkdata: checkdata determines which methods match the input data

View source: R/datalow_utils.r

checkdataR Documentation

checkdata determines which methods match the input data

Description

checkdata ensures the input fishery data contains the data necessary for each of the analyses present and reports which analyses are possible. It checks for simple errors

Usage

checkdata(indata, glob = NA)

Arguments

indata

this can be either the complete list of data objects of just the matrix of fisheries data.

glob

in case one inputs a data.frame of fishery data this allows one to enter the globals list containing as a minimum the spsname and resilience, so that a test can be made for the spm analysis

Value

a 3 x 2 matrix with vaiable and true or false for presence

Examples

## Not run: 
data(fishdat)
fish <- fishdat$fish
checkdata(fishdat)
checkdata(fish)

## End(Not run)

haddonm/datalowSA documentation built on Nov. 5, 2023, 6:40 p.m.