Description Usage Arguments Details Value Author(s) See Also Examples
This function provides a logical test of whether or not a vector is a constant.
1 | is.constant(x)
|
x |
This is a vector. |
As opposed to a variable, a constant is a vector in which the elements contain less than or equal to one unique value.
The is.constant
function returns a logical result, reporting
TRUE
when a vector is a constant, or FALSE
otherwise.
Statisticat, LLC. software@bayesian-inference.com
1 2 3 | library(LaplacesDemon)
is.constant(rep(1,10)) #TRUE
is.constant(1:10) #FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.