Description Usage Arguments Value See Also Examples
This function creates a typecast object, i.e. an object that provides functions for conversion
from and to the internal data storage format. It is used by sqlDao
to transparently
convert between the internal and output data format.
1 | typecast(fromInternal, toInternal)
|
fromInternal |
a function for conversion of data from the internal to the output data format |
toInternal |
a function for conversion of data from the output to the internal data format |
An object of class 'typecast'
, which is a list of two single-argument functions.
sqlDao
, typecastDateToCharacter
,
typecastDateToNumeric
1 2 | # Create a typecast object for data stored internally as character, but output as numeric values
tc <- typecast(as.numeric, as.character)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.