type | R Documentation |
Numeric, text, and categorical variables can be cast to one another by assigning them a new "type". This modifies the storage of the data on the server and should only be done in narrow circumstances, as in when importing data from a different file format has resulted in incorrect types being specified.
type(x)
type(x) <- value
## S4 method for signature 'CrunchVariable'
type(x)
## S4 method for signature 'VariableEntity'
type(x)
## S4 replacement method for signature 'CrunchVariable'
type(x) <- value
x |
a Variable |
value |
For the setter, a character value in c("numeric", "text", "categorical") |
Getter returns character; setter returns x
duly modified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.