| validatePopShares | R Documentation |
Checks that population shares are valid: non-negative and sum to 1.
validatePopShares(PopShares, tol = 1e-06)
PopShares |
A numeric vector of population shares. |
tol |
Tolerance for checking if shares sum to 1. |
TRUE if valid, otherwise throws an error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.