mapAnalysis | R Documentation |
This is the workhorse function that runs any analyses described in
map@analyses
. It uses hashing, and will not rerun any analysis that
already ran on identical inputs.
mapAnalysis(
map,
functionName = NULL,
purgeAnalyses = NULL,
useParallel = getOption("map.useParallel", FALSE),
...
)
map |
Optional map object. If not provided, then one will be
created. If provided, then the present |
functionName |
A function name that will be run on combinations of inputs in the map object. See details. |
purgeAnalyses |
A character string indicating which analysis group
combination or part thereof (e.g., the name entered into the row under
|
useParallel |
Logical. If |
... |
Additonal arguments passed to |
This function will do a sequence of things.
First, it will run expand.grid
on any columns whose names start with analysisGroup
,
creating a factorial set of analyses as described by these columns.
It will assess the combinations against the arguments used by the functionName
.
For any analysisGroup
that does not provide the correct arguments for the functionName
,
these analysisGroups
will be omitted for that particular function.
For efficiency, the function will then assess if any of these has already been run.
For those that have not been run, it will then run the
functionName
on arguments that it finds in the metadata
slot of
the map obj, as well as any arguments passed in here in the ...
.
In general, the arguments being passed in here should be fixed across all
analyses, while any that vary by analysis should be entered into the metadata
table at the time of adding the layer to the map, via mapAdd
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.