.makeWeights | R Documentation |
A function to calculate weights with specified variant function.
.makeWeights(
x,
pointval = 100,
rng = c(0:100),
variant_fun = .makeWeightsMixed
)
x |
A numeric vector of input values. |
pointval |
A numeric point value within the range of x, default is 100. |
rng |
A numeric vector indicating the range of x, default is 0 to 100. |
variant_fun |
A function to calculate weights. It can be makeWeightsTriangular, makeWeightsGradient, makeWeightsMixed, or a custom function name. Default is makeWeightsTriangular. |
A numeric vector of calculated and scaled weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.