#'########### AUTOMATIC MODE
# define file to apply the baseline drift correction to
filename <- forceR_example(type = "ampdriftcorr")
# run automatic baseline drift corrections without saving files or
# printing to screen:
file.baseline_corr <- baseline_corr(filename = filename,
corr.type = "auto",
window.size.mins = 1000,
window.size.means = NULL,
quantile.size = 0.05,
y.scale = 0.5,
res.reduction = 10,
Hz = 100,
plot.to.screen = FALSE,
write.data = FALSE,
write.PDFs = FALSE,
write.logs = FALSE,
show.progress = FALSE)
file.baseline_corr
#'########### MANUAL MODE
# define file to apply the baseline drift correction to
filename <- forceR_example(type = "ampdriftcorr")
# run interactive baseline drift corrections with saving files and
# printing to screen: - out-commented to pass package tests
# file.baseline_corr <- baseline_corr(filename = filename,
# corr.type = "manual",
# window.size.mins = 1000,
# window.size.means = NULL,
# quantile.size = 0.05,
# y.scale = 0.5,
# res.reduction = 10,
# Hz = 100,
# plot.to.screen = TRUE,
# output.folder = "./baselinecorr",
# show.progress = TRUE)
# file.baseline_corr
Run the code above in your browser using DataLab