,
NEWS.md
could not find function "across." error fixed (thanks @prattems)chs_mean method for psd_list objects.read_fif() function to read fif files created by MNE Python.install_py_eeguana() function to install the necessary Python packages for reading fif files.channel_dbl and sample_int classes.annotate_events() function to allow plotting even if there are no events.annotate_electrodes() to add electrode labels to a topographic plot. (Previously this was done with geom_text()).window was odd.as_eeg_lst() makes eeg_lst objects created with previous versions of eeguana compatible with the current version..ref of eeg_rereference() now allows “tidyselect”.
write_vhdr() writes BrainVision 2.0 files (experimental).eeg_psd() computes the power spectral density (PSD) of a en EEG signal (using only the Welch method for now).eeg_band_power() computes power bands.na_omit() removes NA values from eeg_lst objects.as_tidytable() added.sampling_rate() shows the sampling rate of an object.eeg_unsegment() was added.channels_tbl() is much faster now.gsignal package..all_chs of eeg_events_to_NA was deprecated in favor of the more flexible .n_chs._at, _if, _all functions don’t work anymore. Now one should use the new across() (or across_ch()) notation. If your code doesn’t work anymore and you don’t know how to fix it, please post it in https://github.com/bnicenboim/eeguana/discussions
i...) rather than dplyr notation. This might affect the join family and eeg_segment.eeg_ prefix (e.g., eeg_mutate, eeg_filter), they still work without the prefix (for now).stringr
eeg_lst, the segments table is a data.table rather than a tibble and they depend on tidytable
plot_components() behaves more similarly to plot_topo()
... are always the second argument and most arguments require now a . at the beginning: This should help to differentiate them from channels.scale works properly for channels nowsig_fft(), sig_ifft().read_edf() wasn’t reading events from the status channel.reference argumentdrop_incomplete_segments() added.eeg_segment() accepts unpaired events when end argument is used, and should be able to deal with duplicated triggers.eeg_artif_peak() detect peaks in the EEG signal.eeg_ica_cor_tbl() and eeg_ica_var_tbl show the correlation of components (ICA) with EOG channels and their variance explained.eeg_ica_summary_tbl() summarizes eeg_ica_cor_tbl() and eeg_ica_var_tbl().events_tbl() keep attributes.eeg_ica().eeg_artif_*().signal_tbl(), events_tbl(), and segments_tbl().eeg_lst objects.as_tibble().as.data.table() was added.eeg_intervals_to_NA() was renamed to eeg_events_to_NA().events() was renamed to events_tbl().plot_gg() should be changed to ‘ggplot(aes(x=.time, y=.value))’.summarize_all_ch(...) should be changed to summarize_at(channel_names(.),...).summarize_at_ch(...) should be changed to summarize_at(...).ch_filt_*() functions were renamed to eeg_filt_*() and they get a ... argument to select the relevant channels.ch_baseline() was renamed to eeg_baseline().segment() was renamed to eeg_segment()
downsample() was renamed to eeg_downsample()
interpolate_tbl() was renamed to eeg_interpolate_tbl()
plot_in_layout() to place facets in the electrode layout was added.plot_topo() has improved colors, and does “less”, geom_contour and geom_text need to be added.annotate_head() was added to the plot functions.change_coord() was added as an auxiliary function to change the coordinate system for topographic or layout plots.read_edf() was added.channel_names() was fixed.chs_fun() to apply arbitrary functions to the channels.segment() accepts initial and final segments.summarize adds a summarize_n column.events function to visualize and edit events was added.ch_rereference updates the relevant attributes.mutate recognize better channels.*_join functions fixed.