Skip to content
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

rec() artgument with [] labeling not working under Windows but working under Mac #86

Open
frankcsliu opened this issue May 20, 2018 · 6 comments
Labels

Comments

@frankcsliu
Copy link

These two lines worked well in Mac machines but not in Windows machines:

bbq$V44r <- rec(bbq$V44, rec="0:5=0[不會]; 6:10=1[會]", as.num=F)
frq(bbq$V44r)

If I change the labels in [] from Chinese to English; same thing occurred.
If I removed the labels including [], it worked fine.

Please help check this issue and let me know if I missed anything. Thanks.
screen shot 2018-05-20 at 19 33 11

@strengejacke
Copy link
Owner

Have you tried a white space between the recode-value and the brackets for the labels?
rec(bbq$V44, rec="0:5=0 [不會]; 6:10=1 [會]", as.num=F)

@frankcsliu
Copy link
Author

This (adding white space) worked for English labels (if I used [no] and [yes] respectively), but it still does not work for Chinese characters.

@strengejacke
Copy link
Owner

Which R version do you use?

@frankcsliu
Copy link
Author

I was using 3.4.3; then I updated to 3.5.0. The same issue lasted in new version.

@strengejacke
Copy link
Owner

Could you check if the current submit fixes this issue (pls. install latest version from GitHub)?

@frankcsliu
Copy link
Author

I reinstalled 2.7.2 from GitHub and the error remained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants