Skip to contents

Returns TRUE if the design was created (or passed through) rowwise(). Use this predicate in estimation functions to detect and handle (or disallow) rowwise mode.

Usage

is_rowwise(design)

Arguments

design

A survey_base object.

Value

A scalar logical.

See also

Other grouping: group_by, is_grouped(), rowwise

Examples

library(surveytidy)
library(surveycore)
d <- as_survey(pew_npors_2025, weights = weight, strata = stratum)

is_rowwise(d)           # FALSE
#> [1] FALSE
is_rowwise(rowwise(d))  # TRUE
#> [1] TRUE