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

Radiobutton reset option interferes with factorize_secuTrial() #121

Closed
PatrickRWright opened this issue Nov 20, 2019 · 0 comments · Fixed by #122
Closed

Radiobutton reset option interferes with factorize_secuTrial() #121

PatrickRWright opened this issue Nov 20, 2019 · 0 comments · Fixed by #122

Comments

@PatrickRWright
Copy link
Collaborator

PatrickRWright commented Nov 20, 2019

Describe the bug
If the reset option is enabled for radio buttons (i.e. "at the beginning"/"at the end") this seems to cause an error in factorize_secuTrial().

Presumably, this is because the cl table contains an entry for the reset option for which the code is NA. I assume the according rows can be removed from lookup before this line.

data[, paste0(name, ".factor")] <- factorize_secuTrial(data[, name], lookup)

To Reproduce
Export data from a secuTrial DB which has a radio button with the reset option enabled and run read_secuTrial_raw() followed by factorize_secuTrial().

Expected behavior
No error.

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

Successfully merging a pull request may close this issue.

1 participant