get_db_type: Get database type

View source: R/prepare_data.R

get_db_typeR Documentation

Get database type

Description

Get a unique consistent database identifier type depending on the code provided as input

Usage

get_db_type(db_type, short = FALSE)

Arguments

db_type

A character string describing a database type

short

Return a short identifier or not, Default: FALSE

Details

There are four accepted database types: banding, recoveries, harvest and rho (reporting probabilities). Here are the possible values db_type can take and the returning values. Note that the long values of db_type are case insensitive.

Database db_type Short id Long id
Banding "banding" / "b" "b" "banding"
Recoveries "recoveries" / "r" "r" "recoveries"
Reporting probabilities "rho" "rho" "rho"
Harvest "harvest" / "h" "h" "harvest"

Value

A unique identifier describing the database type

Examples

get_db_type("banding")
get_db_type("HARVEST", short = TRUE)


Vin985/gblincoln documentation built on April 21, 2022, 1:49 a.m.