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
I am trying to use value labels for a character vector within a codebook.
I expect the labels to appear in the codebook under the "Value labels" tab as name. This works for haven_labelleddouble (df_labelled$number), but does not work for a haven_labelledcharacter (df_labelled$color).
A workaround is to change the haven_labelledcharacter to factors (df_labelled$color_fac) which then display the labels instead under the "Summary statistics" tab as value_labels.
It would be great to have the value label show up in the same format for character vectors as it does for double vectors.
Thank you for this wonderful package!
I am trying to use value labels for a character vector within a codebook.
I expect the labels to appear in the codebook under the "Value labels" tab as
name
. This works forhaven_labelled
double
(df_labelled$number
), but does not work for ahaven_labelled
character
(df_labelled$color
).A workaround is to change the
haven_labelled
character
to factors (df_labelled$color_fac
) which then display the labels instead under the "Summary statistics" tab asvalue_labels
.It would be great to have the value label show up in the same format for
character
vectors as it does fordouble
vectors.Created on 2021-01-26 by the reprex package (v0.3.0)
The text was updated successfully, but these errors were encountered: