Test if elements in sample column are statistics

Usage

is_sample_stats(x)

Arguments

x
Vector of sample values from an rplexos query

Test if elements in sample column are statistics

Description

In stochastic simulations, PLEXOS will return sample results and their statistics together. This function makes it easy to separate them with a filter.

Examples

## <strong>Not run</strong>: db <- plexos_open() ## <strong>Not run</strong>: res <- query_month(db, "Generator", "Generation") ## <strong>Not run</strong>: res %>% filter(sample_stats(sample)) # To obtain statistics ## <strong>Not run</strong>: res %>% filter(!sample_stats(sample)) # To obtain sample results