randomSortOnVal: randomSortOnVal

Description Usage Arguments Value Author(s) Examples

View source: R/scsR_utils.R

Description

randomize the order of the rows, on the values of a column (e.g. randomized the rows, keeping close the rows having the same GeneID... i.e. sort the Genes of the screen in a random way).

Usage

1
randomSortOnVal(screen, strColVal)

Arguments

screen

data frame containing the results of the siRNA experiment.

strColVal

column of which the values have to be kept close to each other (character vector)

Value

screen data frame sorted randomly on the defined column.

Author(s)

Andrea Franceschini

Examples

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 = randomSortOnVal(uuk_screen_reduced, "GeneID")

scsR documentation built on April 28, 2020, 7:11 p.m.