Split data before fitting spm.

spm_split(sspm_object, ...)

# S4 method for sspm
spm_split(sspm_object, ...)

Arguments

sspm_object

[sspm] An object of class sspm.

...

[expression] Expression to evaluate to split data.

Value

The updated sspm object.

Examples

if (FALSE) {
sspm_model <- sspm_model %>%
    spm_split(year_f %in% c(1990:2017))
}