load_rat_eeg: Load sleep rat sleep scoring (Spike2)

Description Usage Arguments Value See Also Examples

View source: R/load_rat_eeg.R

Description

Load all .txt files with sleep scoring done with Spike2.

Usage

1
2
load_rat_eeg(path = NULL, col_names = c("study", "id", "condition"),
  drop_cols = TRUE, file_ext = ".txt", ...)

Arguments

path

Path to files as a string, Default: NULL

col_names

Names for the columns corresponding to the information on the filename, Default: c("study", "id", "condition")

drop_cols

The Spike2 script will produce files with columns (e.g. T1EEG_PR) for each electrode and animal recorded. Since usually the information is the same across all electrodes Default: TRUE

file_ext

The extension of the files you want to import, Default: '.txt'

...

extra parameters to pass to tidyr::separate

Value

A data-frame.

See Also

tibble dir_ls,path_ext_remove,path_file mutate,select,select_if,matches separate,unnest,gather map read_table2

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

medpsytuebingen/medpsytueR documentation built on May 25, 2019, 10:30 p.m.