Learn R Programming

beautier (version 2.6.12)

is_laplace_distr: Determine if the object is a valid Laplace distribution, as created by create_laplace_distr

Description

Determine if the object is a valid Laplace distribution, as created by create_laplace_distr

Usage

is_laplace_distr(x)

Value

TRUE if x is a valid Laplace distribution, FALSE otherwise

Arguments

x

an object, to be determined if it is a valid Laplace distribution

Author

Richèl J.C. Bilderbeek

See Also

use is_distr to see if x is any distribution

Examples

Run this code
# TRUE
is_laplace_distr(create_laplace_distr())
# FALSE
is_laplace_distr(create_log_normal_distr())
is_laplace_distr(NA)
is_laplace_distr(NULL)
is_laplace_distr("nonsense")

Run the code above in your browser using DataLab