Determine if the object is a valid MCMC

is_mcmc(x)

Arguments

x

an object, to be determined if it is a valid MCMC

Value

TRUE if x is a valid MCMC, FALSE otherwise

See also

Use create_mcmc to create an MCMC

Author

Richèl J.C. Bilderbeek

Examples

# Returns TRUE
is_mcmc(create_mcmc())
#> [1] TRUE
is_mcmc(create_ns_mcmc())
#> [1] TRUE

# Returns FALSE
is_mcmc("nonsense")
#> [1] FALSE
is_mcmc(NULL)
#> [1] FALSE
is_mcmc(NA)
#> [1] FALSE
is_mcmc("")
#> [1] FALSE
is_mcmc(c())
#> [1] FALSE