cran / expss

:exclamation: This is a read-only mirror of the CRAN R package repository. expss — Tables, Labels and Some Useful Functions from Spreadsheets and 'SPSS' Statistics. Homepage: https://gdemin.github.io/expss/ Report bugs for this package: https://github.com/gdemin/expss/issues
0 stars 0 forks source link

fre function don't show automatically value labels (when sav dataset already has value labels) #1

Open camaheca opened 4 years ago

camaheca commented 4 years ago

Hi guys, I love your expss package for frequencies and crosstabulation of survey data.

If the dataset already has value labels for each variable when I import it (a sav dataset), I noticed that function cro() automatically shows in the output the value labels from the variables used in the crosstab.

So, I don't need to set value labels for each variable.

Example: library(sjlabelled) library(expss) data(efc) cro(efc$e16sex, efc$e15relat)

However, I noticed that function fre() cannot by default show in the output the value labels from the variables; instead it shows the variable values. The only way I know to do that is to set value labels for the variable before I use fre function, but as I already told you the dataset already has value labels.

Example:

fre(efc$e16sex)

Thank you for your time and attention.

gaborcsardi commented 4 years ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Thanks!