Description Usage Arguments Examples
This function we have exported from PROcess package with a little modification.
1 | rmBaseline(fldr, bseoffrda = NULL, breaks = 200, qntl = 0, method = "loess", bw = 0.1, SpecNames = list.files(fldr, pattern = "\.*csv\.*"))
|
fldr |
|
bseoffrda |
|
breaks |
|
qntl |
|
method |
|
bw |
|
SpecNames |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (fldr, bseoffrda = NULL, breaks = 200, qntl = 0, method = "loess",
bw = 0.1, SpecNames = list.files(fldr, pattern = "\\.*csv\\.*"))
{
fs <- list.files(fldr, pattern = "\\.*csv\\.*", full.names = T)
n <- length(fs)
par(mfrow = c(3, 3))
for (j in 1:n) {
f1 <- read.files(fs[j])
fcut <- f1[f1[, 1] > 0, ]
bseoff <- PROcess::bslnoff(fcut, breaks = breaks, qntl = qntl,
method = method, plot = TRUE, bw = bw)
if (j > 1)
bseoffM <- cbind(bseoffM, bseoff[, 2])
else bseoffM <- bseoff[, 2]
}
dimnames(bseoffM) <- list(signif(bseoff[, 1], 6), SpecNames)
if (!is.null(bseoffrda))
save(list = bseoffM, file = bseoffrda)
bseoffM
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.