bnicenboim / eeguana

A package for manipulating EEG data in R.
https://bnicenboim.github.io/eeguana/
Other
21 stars 9 forks source link

IIR filter error message: Column `iir` doesn't exist. #152

Closed stonekate closed 3 years ago

stonekate commented 3 years ago

Hey, I'm trying to use the IIR filter but get the error above, maybe I missed something:

# load data
dat <- read_vhdr("./1.vhdr")

# add channel positions
 channels_tbl(dat) <- select(channels_tbl(dat), .channel) %>%
    left_join(layout_32_1020)

  # filter
  datf <- eeg_filt_band_pass(dat, .freq = c(.01, 30), .method = "iir")

image

bnicenboim commented 3 years ago

oh, maybe I didn't update the documentation. It should be datf <- eeg_filt_band_pass(dat, .freq = c(.01, 30), .config = list(method = "iir"))

stonekate commented 3 years ago

yup that was it!