View source: R/quickreadfiles.R
quickreadfiles | R Documentation |
quickreadfiles
builts a data frame from several txt files. It
assumes that in each file, the first row has the names of the variables.
quickreadfiles(path = getwd(), extension = "txt", ...)
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. |
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.