You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Including an as.data.frame() method for Categories objects would make it easier to use join functions to map between the names and numeric codes associated with a variable.
Here are the functions that I'm currently using in my scripts to achieve this:
Yeah, seems like an oversight because there is one for variables.
A complication I can foresee would be that I don't think the category metadata schema is consistent between variables. Do you think numeric_value or datetime column should always be present, or only when relevant?
I think my expectation would be that an as.data.frame() method would produce a data frame that looks like the print method for Categories objects, i.e. only including the columns that are relevant for that variable type, but I would be happy with either implementation!
Including an
as.data.frame()
method forCategories
objects would make it easier to use join functions to map between the names and numeric codes associated with a variable.Here are the functions that I'm currently using in my scripts to achieve this:
The text was updated successfully, but these errors were encountered: