GREA icon indicating copy to clipboard operation
GREA copied to clipboard

Feature Request, Set Variable types

Open st-weiss opened this issue 6 years ago • 1 comments

Dear Stan,

I'd like to ask if you can make it possible to set the type per variable with simple drop-down menu, so I can easily set to date, character, numeric, factor, etc. This would be so helpful, as it takes me forever each time. If additionally I could set the labels interactively aswell, that would be amazing. Great Work Best Wishes

st-weiss avatar Jan 15 '19 20:01 st-weiss

Hey @st-weiss , As a workaround, to roughly set all the variables types, I usually use: RObject <- tibble(type_convert(RObject, na= c("", " ", "NA", "NULL", "null"), trim_ws = TRUE)) Then I follow up with modify_if(RObject, .p = is.[Old_Variable_Type], .f = as_[New_Variable_Type]) #or modify_at(RObject, )

Its not ideal, but they work pretty well for workarounds.

NeuronalMike avatar Sep 27 '20 05:09 NeuronalMike