splitFile: Split one csv data file into two files

Description Usage Arguments Details Value Author(s) References

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 <xycheng@iastate.edu>

References

Refer to package vignette Section 5.1


introstat/ePort documentation built on May 18, 2019, 5:47 a.m.