Learn R Programming

beautier (version 2.6.5)

is_mcmc: Determine if the object is a valid MCMC

Description

Determine if the object is a valid MCMC

Usage

is_mcmc(x)

Value

TRUE if x is a valid MCMC, FALSE otherwise

Arguments

x

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

Author

Richèl J.C. Bilderbeek

See Also

Use create_mcmc to create an MCMC

Examples

Run this code
check_empty_beautier_folder()

# Returns TRUE
is_mcmc(create_mcmc())
is_mcmc(create_ns_mcmc())

# Returns FALSE
is_mcmc("nonsense")
is_mcmc(NULL)
is_mcmc(NA)
is_mcmc("")
is_mcmc(c())

check_empty_beautier_folder()

Run the code above in your browser using DataLab