between: Convenience function for range subsets

betweenR Documentation

Convenience function for range subsets

Description

between is a thin wrapper for the between function of data.table::between. It is equivalent to x >= lower & x <= upper when incbounds=TRUE, or x > lower & y < upper when FALSE. In comparison with dplyr::between, it doesn't loose the class of its argument, and it's more appropriate for manipulating the column .sample. For more information and the description of the arguments, see data.table::between.

Examples


data_faces_ERPs %>%
  eeg_filter(.sample %>% between(10, 100))


bnicenboim/eeguana documentation built on March 16, 2024, 7:21 a.m.