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

Subject offset on the counters #6

Open
mattsodoma opened this issue Oct 7, 2021 · 0 comments
Open

Subject offset on the counters #6

mattsodoma opened this issue Oct 7, 2021 · 0 comments

Comments

@mattsodoma
Copy link

Looks like your subject offset is from counters not being reset between loops. Its possible that grepl is not returning something when there is no match so it isn't resetting a match_a1 value. It seems to work fine as long as you reset these within the loop. I dont know if list is the optimal structure, but seems to work. The issue now, is that you need a contingency in place for when match_a1, a2, or a3 are not found as it errors out on subject 2117. You'll want something with the inverse logic of this, something like if match_a1 does not exist, next, else the code you have.
Screen Shot 2021-10-06 at 1 52 16 PM
Screen Shot 2021-10-06 at 1 49 38 PM

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

No branches or pull requests

1 participant