replace_0: replace 0 with given value

Description Usage Arguments Examples

Description

replace 0 with a given value, The default is (the lowest value - 1)

Usage

1
2
3
4
5
6
7
replace_0(
  baf,
  value = min(sX(baf)[sX(baf) > 1], na.rm = TRUE) - 1,
  show_count = TRUE,
  by_s = NULL,
  by_b = NULL
)

Arguments

baf

an object of the BAf-class

value

the values with which zeros will be replaced

show_count

whether the number appearance of 0s is displayed or not

by_s, by_b

if show_count is TRUE, then these specify by which column the counts are stratified, e.g. "plate", "assay".

Examples

1
2

Rundmus/BAf-R_package documentation built on May 18, 2020, 12:59 p.m.