Description Usage Arguments Author(s) Examples
Remove all but one patient record to omit duplicates.
1 | rmAllButOne(ind, subrows, total.data)
|
ind |
|
subrows |
row names of subset of rows of |
total.data |
Master data.frame of patient records |
N Green
1 2 3 4 5 6 7 8 9 10 11 12 13 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (ind, subrows, total.data)
{
ind.min <- min(which(ind[subrows]))
ind[subrows] <- FALSE
ind[subrows[ind.min]] <- TRUE
total.data <- total.data[ind, ]
total.data
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.