View source: R/metricsExternal.R
| defineExternalMetric | R Documentation |
Define an external metric for lcModels
defineExternalMetric(
name,
fun,
warnIfExists = getOption("latrend.warnMetricOverride", TRUE)
)
name |
The name of the metric. |
fun |
The function to compute the metric, accepting a lcModel object as input. |
warnIfExists |
Whether to output a warning when the metric is already defined. |
Other metric functions:
defineInternalMetric(),
externalMetric(),
getExternalMetricDefinition(),
getExternalMetricNames(),
getInternalMetricDefinition(),
getInternalMetricNames(),
metric()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.