R/5-selection-functions.R
selectByFpr.Rd
Select elements based on the false positive rate.
selectByFpr(x, alpha = 0.05, operator = c("<", "<="))
numerical vector indicating the p-values.
numerical value, the upper-bound on the FPR.
character string indicating the relational operator to use.
A logical vector, indicating the elements to keep.
Alessandro Barberis
#Seed set.seed(1010) #Data x = seq(from = 0, to = 1, by = 0.1) names(x) = paste0("f", seq(11)) #Select selectByFpr(x = x, alpha = 0.3) #> f1 f2 f3 f4 f5 f6 f7 f8 f9 f10 f11 #> TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE