Skip to contents

Predicate function which determines whether df contains grp_* columns.

Usage

has_groups(df)

Arguments

df

A forecast data frame

Value

TRUE if there are groups, FALSE otherwise

Examples

casteval:::has_groups(data.frame(time=1,val=2))
#> [1] FALSE

casteval:::has_groups(data.frame(time=1, val=2, grp_scenario=3))
#> [1] TRUE