View source: R/Scale_Logistic.R
1 | scale_fileapply_pass_2(fnm = "combined_data_2.RData", pathformstart = "scale_precomp_2_", directory = getwd())
|
fnm |
|
pathformstart |
|
directory |
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 (fnm = "combined_data_2.RData", pathformstart = "scale_precomp_2_",
directory = getwd())
{
file.names <- dir(path = directory, pattern = pathformstart,
full.names = TRUE)
combined.data_2 <- list()
for (i in 1:length(file.names)) {
flist <- NULL
flist <- ls()
load(file.names[i], envir = .GlobalEnv)
run <- as.integer(substring(file.names[i], nchar(directory) +
nchar(pathformstart) + 2, nchar(file.names[i]) -
nchar(".RData")))
combined.data_2[[i]] <- list(run = run, subset = i, idx.start = idx.start,
idx.end = idx.end, alpha.cent = alpha.cent, alpha.p.cent = alpha.p.cent,
design.max = design.max, design.min = design.min)
rm(list = ls()[ls() %in% flist == FALSE])
}
save(file = fnm, combined.data_2 = combined.data_2)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.