Description Usage Arguments Details Value See Also Examples
View source: R/assignReviewer.R
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.
1 2 3 4 5 6 | assignReviewer(
data,
Unitvar,
prefOrd = c("LSBS", "HBBS", "LMERS", "Coastal", "LMichigan", "LHuron", "LEBS",
"LOBS", "TLAS")
)
|
data |
Data frame of papers to be reviewed, each row represents a single paper. |
Unitvar |
Character scalar, name of variable in |
prefOrd |
Character vector, preferred ordering of Units, default geographical,
|
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.
A data frame, the same as data
with one new column, Reviewer
,
and sorted by Reviewer.
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)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.