View source: R/other-functions.R
| fn.clip | R Documentation |
Ensures all values are within specified bounds and sum to 1
fn.clip(vec, gammaMin, gammaMax)
vec |
Numeric vector to clip |
gammaMin |
Lower Bound |
gammaMax |
Upper bound |
Clipped and renormalized vector that sums to 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.