Description Usage Arguments Examples
TODO
1 | find.delta(data, delta.column = "(SigLev|[[:alpha:]]+Diff|Delta)", filename = "UNKONWN", ...)
|
data |
|
delta.column |
|
filename |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##---- 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 (data, delta.column = "(SigLev|[[:alpha:]]+Diff|Delta)",
filename = "UNKONWN", ...)
{
col = grep(delta.column, colnames(data))
if (length(col) == 0) {
stop(paste("Could not find column pattern '", delta.column,
"' in file '", filename, "'.", sep = ""))
}
revs = reversals(data[, col[1]])
n = length(revs)
if (n < 7) {
warning(paste("Insufficinet reversals to calculate threshold",
" for file \"", filename, "\".", sep = ""))
NA
}
else if (n%%2 == 0)
mean(revs[4:n])
else mean(revs[3:n])
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.