crsra_import_course {crsra} | R Documentation |
Imports all the .csv files into one list consisting of all the tables within the course.
Description
Imports all the .csv files into one list consisting of all the tables within the course.
Usage
crsra_import_course(workdir = ".", add_course_name = FALSE,
change_pid_column = FALSE, check_problems = TRUE)
Arguments
workdir |
A character string vector indicating the directory where the unzipped course is stored. |
add_course_name |
Should a column of the course name
be added to all the |
change_pid_column |
Should the |
check_problems |
Should problems with reading in the data be checked? |
Examples
zip_file = system.file("extdata", "fake_course_7051862327916.zip",
package = "crsra")
bn = basename(zip_file)
bn = sub("[.]zip$", "", bn)
res = unzip(zip_file, exdir = tempdir(), overwrite = TRUE)
workdir = file.path(tempdir(), bn)
course_tables = crsra_import_course(workdir,
check_problems = FALSE)
[Package crsra version 0.2.3 Index]