inputs to get_ functions are required as strings when passed as a sql statement This function converts numeric inputs to character strings. Used specifically for tonnage class

createTonnageString(itemName, chosenItem)

Arguments

itemName

Character string. Variable name as it exists in the data base

chosenItem

User input value of variable listed in itemName

Value

A character string

Examples

if (FALSE) {
createTonnageString(itemName="toncl2",chosenItem=c(1,2))
createTonnageString(itemName="toncl2",chosenItem="all")

}