getMeasurementTypes {rYoutheria}R Documentation

Get Measurement Types

Description

Retrieves a data.frame of measurement types available from YouTheria.

Usage

getMeasurementTypes(measurementType = NULL)

Arguments

measurementType

If NULL (default), then all measurement types are returned. Can also be 'numeric' or 'character' (or a list of either type) and will filter by Id and Name respectivly in the resulting data.frame.

Value

A dataframe of measurement types giving their Id and Name

Examples

## Not run: 
# Get a dataframe of all measurement types
AllMT <- getMeasurementTypes()

# Seach by name
BM_MT <- getMeasurementTypes('Body Mass')
BM_LL_MT <- getMeasurementTypes(c('Body Mass','Limb Length'))

# Search by ID
MT1 <- getMeasurementTypes(1)
MT123 <- getMeasurementTypes(1:3)

## End(Not run)

[Package rYoutheria version 1.0.3 Index]