Learn R Programming

ghclass (version 0.1.0)

peer_roster_create: Create peer review roster

Description

peer_roster_create creates data frame of random assignments of author files to reviewers. By default, the output is saved to a .csv file in the current working directory that incorporates the current date and random seed as part of the file name.

Usage

peer_roster_create(n_rev, user, seed = NULL, write_csv = TRUE, dir = NULL)

Arguments

n_rev

Numeric. Number of reviews per user. Must be larger than zero and smaller than the number of users.

user

Character. A vector of GitHub user names.

seed

Numeric. Random seed for assignment, defaults to 12345.

write_csv

Logical. Whether the roster data frame should be written to a .csv file in the current working directory, defaults to TRUE.

dir

Character. Directory where the peer review roster will be written if write_csv = TRUE.

See Also

Other peer review functions: peer_assign(), peer_file_add_aut(), peer_file_add_rev(), peer_form_create_rating(), peer_form_create_review(), peer_init(), peer_return(), peer_score_rating(), peer_score_review()

Examples

Run this code
# NOT RUN {
peer_roster_create(3,
c("anya-ghclass", "bruno-ghclass", "celine-ghclass", "diego-ghclass"),
dir = "/Users/profx/introstats/hw2/")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab