Setting category numeric values & dates
This article is part of The Definitive Guide to Uploading and Preparing Data
Values are defined to produce means on tables (eg: scale means). Conversely, you might like to unset the numeric values (since the means will be meaningless).
Dates are important so that you can have a categorical date variable.
In the Variable Properties in the web app, you can see you have 3 options for a categorical variable: Date, Scale and None. These pertain to the values/dates you set, or not.
In the web app
- You can change values in the Variable Properties
Crunch Automation
Using R
- See the Variables vignette
- For categories, use Categories() function and related functions - eg: names(categories(variable))
- For values, use values() and related functions - eg: values(categories(variable))