R/s_value.r

Defines functions S.value

Documented in S.value

S.value <- function(x) {
if(is.list(x)) {
 pos <- grep("p.*value.*", names(x), ignore.case=TRUE, perl=TRUE)[1]
 x <- x[[pos]]
 }
-log2(x)
}

Try the shipunov package in your browser

Any scripts or data that you put into this service are public.

shipunov documentation built on Feb. 16, 2023, 9:05 p.m.