Learn R Programming

Harman (version 1.0.2)

shiftBetas: Shift beta values from 0 and 1 to avoid infinite M values

Description

A convienance function for methylation data.

Usage

shiftBetas(betas, shiftBy = 1e-04)

Arguments

betas
matrix, beta values.
shiftBy
numeric, the amount to shift values of 0 and 1 by.

Value

None

Examples

Run this code
betas <- seq(0, 1, by=0.05)
range(betas)
newBetas <- shiftBetas(betas, shiftBy=1e-4)
newBetas
range(newBetas)

Run the code above in your browser using DataLab