View source: R/GetSurveyAbb.fn.R
GetSurveyAbb.fn | R Documentation |
Get Survey Abbreviation
GetSurveyAbb.fn(surveys = "Combo", na.return = "")
surveys |
A vector of strings specifying the survey names that you want to get abbreviations for. |
na.return |
The desired entry you want to replace all |
Get abbreviations for a vector of survey names. The input vector of
names, which are typically names used to pull the data from the
warehouse, do not always match the name agreed upon within the
Population Ecology Program. So, standard abbreviations are returned for
a given warehouse name.
Partial matches are allowed, and are searched
for using the first two columns of createMatrix()
, so be
weary of using terms used for multiple surveys as only the first match
will be returned for each input value.
A vector of strings containing a single abbreviation for each
input value in surveys
. Only the first match for each survey is
returned. The function returns ""
for surveys not found in the
matrix by default, but this return value for unmatched surveys can
be changed by altering na.return
.
Kelli Faye Johnson
See createMatrix()
for a list of available surveys.
# Return a vector of agreed upon abbreviations for the
# Triennial Survey and the West Coast Groundfish Bottom Trawl Survey.
GetSurveyAbb.fn(c("Triennial", "Combo"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.