quickreadfiles: Reads several files

View source: R/quickreadfiles.R

quickreadfilesR 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)

danilinares/quickpsy documentation built on Feb. 13, 2023, 8:44 p.m.