assignReviewer: Assign Reviewers to Papers

Description Usage Arguments Details Value See Also Examples

View source: R/assignReviewer.R

Description

Given a data frame of papers, in which each paper is associated with a Unit, assign a reviewing Unit to each paper such that each reviewing unit has approximately the same number of papers to review and no reviewing unit is assigned one of its own papers to review.

Usage

1
2
3
4
5
6
assignReviewer(
  data,
  Unitvar,
  prefOrd = c("LSBS", "HBBS", "LMERS", "Coastal", "LMichigan", "LHuron", "LEBS",
    "LOBS", "TLAS")
)

Arguments

data

Data frame of papers to be reviewed, each row represents a single paper.

Unitvar

Character scalar, name of variable in data identifying the Unit with which each paper is associated.

prefOrd

Character vector, preferred ordering of Units, default geographical, c("LSBS", "HBBS", "LMERS", "Coastal", "LMichigan", "LHuron", "LEBS", "LOBS", "TLAS").

Details

If a vector of length 1 is provided for round2, ndec, comma, or align, the same rounding, decimals, commas, or alignment is applied to all specified columns.

Value

A data frame, the same as data with one new column, Reviewer, and sorted by Reviewer.

See Also

format.

Examples

1
2
3
4
5
6
7
test <- data.frame(Source=rep(paste("Group", 1:5), c(2, 3, 1, 6, 4)),
 Paper=LETTERS[1:16])
test2 <- assignReviewer(data=test, Unitvar="Source",
 prefOrd=paste("Group", 1:5))
test
test2
with(test2, addmargins(table(Reviewer, Source)))

JVAdams/jvamisc documentation built on Aug. 11, 2021, 6:43 a.m.