Description Usage Arguments Examples
View source: R/crsra_import_course.R
Imports all the .csv files into one list consisting of all the tables within the course.
1 2 | crsra_import_course(workdir = ".", add_course_name = FALSE,
change_pid_column = FALSE, check_problems = TRUE)
|
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? |
1 2 3 4 5 6 7 8 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.