View source: R/other-functions.R
| is.probvector | R Documentation |
Tests if values are non-negative and sum to 1 (within tolerance)
is.probvector(x, tol = .Machine$double.eps^0.5)
x |
Numeric vector to check |
tol |
Tolerance for floating point comparison |
Logical indicating if x is a natural number (positive integer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.