getMeasurementData {rYoutheria} | R Documentation |
Get a table of trait measurements from YouTheria
Description
Retrieves a data.frame
of trait measurements with facilities to select by
location, species name and/or measurement type.
Usage
getMeasurementData(measurementType = NA, MSW93Binomial = NA,
MSW05Binomial = NA, country = NULL, StudyUnitId = NULL,
locationData = TRUE, locationOnly = FALSE, cast = TRUE,
silent = FALSE)
Arguments
measurementType |
Measurement types to collect data for. If |
MSW93Binomial |
Character giving the latin name of a species (or list of species) for which measurements are required. Naming should follow Mammal Species of the World 1993. |
MSW05Binomial |
Character giving the latin name of a species (or list of species) for which measurements are required. Naming should follow Mammal Species of the World 2005. |
country |
Character specifying the country from which you wish to collect data.
If |
StudyUnitId |
Numeric specifying the StudyUnitId from which you wish to collect data.
If |
locationData |
Logial dictating whether location information should be added to the
output. Defualt is |
locationOnly |
If |
cast |
If |
silent |
If |
Value
A data.frame
with each row giving a trait measurement
Examples
## Not run:
# Select measurement type by id
M14 <- getMeasurementData(14)
M22_7_2 <- getMeasurementData(c(22,7,2))
# Select measurement type by name
WM <- getMeasurementData('Wing Morphology')
WM_TN <- getMeasurementData(c('Wing Morphology','Teat Number'))
# Select by measurement type and species name
PpPr_bodymass <- getMeasurementData(measurementType = 1,
MSW93Binomial = c('Pongo pygmaeus','Peroryctes raffrayana'))
#Select by measurement type, species name and location
Ob_Activity_Tanz <- getMeasurementData(measurementType = 'Activity Cycle',
MSW05Binomial = 'Oryx beisa',
country = 'Tanzania')
## End(Not run)