.validWeights | R Documentation |
These track and access the weights we support as well as any aliases.
.validWeights
.isValidWeightTarget(target)
.isValidWeightAlias(alias)
.listValidWeightTargets()
.listValidWeightAliases()
target |
String |
alias |
String |
An object of class list
of length 2.
"target" refers to weight calculations we support.
"alias" refers to all possible names. Every "target" has at least one "alias" (itself) and may have more.
.isValidWeightTarget()
and .isValidWeightAlias()
identify
whether a given input (from a user) is a value weighting name.
.listValidWeightTargets()
and .listValidWeightAliases()
are
for returning nicely formatted strings for messages to users.
IMPORTANT: Adding new aliases MUST correspond to new functions defined in weights_exported.R, with possible adjustments to calculations in weights_internal.R.
Logical for .isValid*
, and a string for .listValid*
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.