Filter cases from objects of class canreg or canregs

cr_filter(.data, ..., drop = c("none"), part = "all")

# S3 method for class 'canregs'
cr_filter(.data, ..., part = "all")

# S3 method for class 'canreg'
cr_filter(.data, ..., part = "all")

# S3 method for class 'asrs'
cr_filter(.data, ..., drop = c("none"))

# Default S3 method
cr_filter(.data, ..., drop = c("none"))

Arguments

.data

An object with class of canreg, or canregs.

...

Filtering conditions passed to dplyr::filter(). These

drop

Drop specific cancer categories.

part

A character vector specifying which components of .data to filter. Must be one or more of "FBcases", "SWcases", or "POP". Defaults to "FBcases". conditions are applied to the selected components.

Value

An object of the same class as .data (canreg or canregs) with the specified components filtered accordingly. The structure and component order are preserved.