quickreadfiles {quickpsy} | R Documentation |
Reads several files
Description
quickreadfiles
builts a data frame from several txt files. It
assumes that in each file, the first row has the names of the variables.
Usage
quickreadfiles(path = getwd(), extension = "txt", ...)
Arguments
path |
Path of the file (default is the working directory). |
extension |
Specify whether the file extension is 'txt' or 'csv'. |
... |
arguments of the form name_var = c('value1', 'value2',..). A new column with variable name name_var is addes to the data frame. |
Examples
# download the 3 files in
# https://github.com/danilinares/quickpsy/tree/master/inst/extdata/example1
# and add them to your working directory
# dat <- quickreadfiles(subject = c('aa', 'bb', 'cc'), session = c('1', '2'))
# fit <- quickpsy(dat, phase, resp, grouping=.(subject), lapses = T, guess = T)
# plotcurves(fit)
[Package quickpsy version 0.1.5.1 Index]