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

Epoching by arbitrary criteria #149

Open
mattmoo opened this issue Jan 7, 2025 · 3 comments
Open

Epoching by arbitrary criteria #149

mattmoo opened this issue Jan 7, 2025 · 3 comments
Assignees

Comments

@mattmoo
Copy link

mattmoo commented Jan 7, 2025

Thanks for this great package, I'm very keen to never pick up Matlab again!

More of a feature request, but one thing that would leverage the strengths of R would be to get a bit more flexibility around selecting events for epochs, instead of just being a string match to the event types. Given that tibbles are used under the hood, maybe the filter() function?

@craddm craddm self-assigned this Feb 4, 2025
@craddm
Copy link
Owner

craddm commented Feb 4, 2025

Could you a bit clearer on what kind of flexibility you had in mind? e.g. was it something like being able to use relational operators like > and < for numbers, rather than only ==?

@mattmoo
Copy link
Author

mattmoo commented Feb 7, 2025

Yeah something like that, but even things like between(), %in%, %like%, as here. For my specific study, I have extra event columns stimulation_frequency (numeric) and perceptibility (factor), and being able to select a combination of those would be great!

@craddm
Copy link
Owner

craddm commented Feb 7, 2025

Ahh, I think what you need is already there - there are already wrappers around filter, mutate, rename, and select in the code (could probably make it clearer in the documentation... but see https://craddm.github.io/eegUtils/articles/eegUtils.html#tidyverse-functions)

It has been a while since I've tried them so I can't guarantee they'll handle everything correctly, but in principle they should, since they're just wrappers around the dplyr functions and should support everything they do.

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

No branches or pull requests

2 participants