-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export labels to R #101
Comments
In order to provide an example of syntax comparison: .sps value woudl be following for a 4 questions survey that would include diverse questions such as one free text, one date, one select, one integer question and one yes/no question encoded with integer: _survey123.sps_
in R the equivalent syntax file would be _survey123_R_syntax.R_:
Both Integer and Numeric can be imported as numeric.
|
Thanks! I propose we separate this issue into two parts: One to take care of labeling variables and options, and one for taking care of all the import steps from CSV. (The SPSS syntax file doesn't cover the import steps from CSV either at this point.) @Edouard-Legoupil Are there any restrictions regarding the length of variable labels and option labels? Do non-ASCII characters need to be escaped? |
To my knowledge, there's no restrictions for label length. Note that the variable has two distinct attributes (name & label) and that there is a limit for name length: 10,000 bytes (256 bytes in versions of R before 2.13.0). In SPSS, name length limit is 64 bytes (8 bytes in previous versions). |
FYI -- I have implemented those functions in a R package: https://github.com/Edouard-Legoupil/koboloadeR - you might just close this issue |
Thanks so much @Edouard-Legoupil. We'll add a support page for this, pointing to your repo. Closing this issue now. |
A user should be able to export a syntax file for reading their dataset using labels, just like they can currently with SPS files in SPSS.
The text was updated successfully, but these errors were encountered: