Description Usage Arguments Details Note See Also Examples
Apply cognostics function to a key-value pair, obtaining additional default cognostics like the conditioning variable values in the case of conditioning variable division, the panel key, and between-subset variables.
1 | applyCogFn(cogFn, kvSubset, conn = NULL, ...)
|
cogFn |
cognostics function |
kvSubset |
key-value pair |
conn |
the connection object or ddo/ddf object from which the key/value pair came (see details) |
... |
additional parameters for special cases (handled internally) |
The conn
connection object is required in the case of a local disk connection so that the panel key default cognostic can be computed based on the file hash function, if used.
This function is used inside of makeDisplay
and is exposed for users who are curious about what the complete output of a cognostics function will look like.
1 2 3 4 5 6 7 8 | # create a division with a between-subset variable
d <- divide(iris, by = "Species",
bsvFn = function(x) list(msl = mean(x$Sepal.Length)))
# create a cognostics function that gets max sepal length
cogFn <- function(x)
list(maxsl = max(x$Sepal.Length))
# apply the cognostics function to the first key-value pair
applyCogFn(cogFn, d[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.