R/createStringSpecies.R
createStringSpecies.Rd
Deal explicity with NESPP3 and NESPP4 codes. inputs to get_ functions are required as strings when passed as a sql statement This function converts numeric inputs to character strings
createStringSpecies(itemName, chosenItem, convertToCharacter, numChars)
Character string. Variable name as it exists in the data base
User input value of variable listed in itemName
Boolean. Should we convert the chosenItem
to a character string (This depends on how the variable is declared in the database)
Numeric scalar. Number of characters to format the numeric chosenItem
as.
A charachter string
if (FALSE) {
createStringSpecies(itemName="area",area=503,convertToCharacter=TRUE,numChars=3)
createStringSpecies(itemName="species_itis",species,convertToCharacter=TRUE,numChars=6)
}