splitFile: Split one csv data file into two files

Description Usage Arguments Details Value Author(s) References

View source: R/cleanCSV.R

Description

If one homework contains two topics, we need to split the file. For example, Chapter 2 covers the material for Topics 2 and 4.

Usage

1
splitFile(filenm, cut_idx, cut_type)

Arguments

filenm

file name with path.

cut_idx

the identified number of the last question in part 1.

cut_type

either "RsQ" or "ID". See detail.

Details

There are two types of cut_type: RsQ and ID. RsQ refers to the absolute ID for questions, which is consistent with the Respondus questions. ID refers to the questions that the students worked on.

For example, students were given 36 questions for Chapter 2, the first 16 belong to Topic 2, so we set cut_type='ID' and cut_idx=16. An alternative way is to set cut_type='RsQ' and cut_idx=53, because the first 16 questions given to the students contains 53 questions totally.

Value

two new csv files

Author(s)

Xiaoyue Cheng <[email protected]>

References

Refer to package vignette Section 5.1


introstat/ePort documentation built on May 17, 2017, 4:19 a.m.