If you have other object types you wish to convert to Crunch variables,
you can declare methods for toVariable
toVariable(x, ...)# S4 method for character
toVariable(x, ...)
# S4 method for numeric
toVariable(x, ...)
# S4 method for factor
toVariable(x, ...)
# S4 method for Date
toVariable(x, ...)
# S4 method for POSIXt
toVariable(x, ...)
# S4 method for AsIs
toVariable(x, ...)
# S4 method for VariableDefinition
toVariable(x, ...)
# S4 method for logical
toVariable(x, ...)
# S4 method for CrunchExpr
toVariable(x, ...)
the object
additional arguments
a list object suitable for POSTing to the Crunch API. See the API documentation for specifications.