Description Usage Arguments Value Author(s) Examples
randomize an inner field (e.g. the scores of the oligos of a gene), keeping unaltered the order of the outer field (e.g. the genes)
1 | randomizeInner(df, baseColStr, sortColStr, reverse = FALSE)
|
df |
input data frame |
baseColStr |
name of the column that represents the outer field (e.g. the genes) (character vector) |
sortColStr |
name of the column that represents the inner field (e.g. the scores of the oligos of a gene) (character vector) |
reverse |
specify the direction of the sorting (boolean) |
data frame with the randomized rows.
Andrea Franceschini
1 2 3 4 5 6 | data(uuk_screen)
# to speed up the example we use only the first 1000 rows
uuk_screen_reduced = uuk_screen[1:1000,]
screen <- randomizeInner(arrange(uuk_screen_reduced, GeneID), "GeneID", "score")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.