replace_non_null_elements: replace_non_null_elements

Description Usage Arguments Value Author(s) Examples

View source: R/scsR_utils.R

Description

replace the element of the input vector with the element of the replacementVector (whenever these elements are not empy/null)

Usage

1
replace_non_null_elements(inputVect, replacementVect)

Arguments

inputVect

data frame containing the results of the siRNA experiment.

replacementVect

replacement vector (vector)

Value

input vector with the replaced values.

Author(s)

Andrea Franceschini

Examples

1
2
3
4
5
6
7
	data(uuk_screen)

	# to speed up the example we use only the first 1000 rows
	uuk_screen_reduced = uuk_screen[1:1000,]

	# replace all the scores with 1, except the first 100 scores of the vector
	nv <- replace_non_null_elements(uuk_screen_reduced$score, c(rep(NA, 100), rep(1, nrow(uuk_screen_reduced)-100) ))

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