Skip to contents

brand_filter() evaluates a filter expression on brand$data, keeps the surviving response_id/brand pairs, and propagates that filtered panel to the stored funnel, attribute, and NPS data.

Usage

brand_filter(brand, filter_expr = NULL, cohort = NULL)

Arguments

brand

A g6tr_brand object created with brand_create().

filter_expr

Optional filter expression evaluated on brand$data.

cohort

Optional single cohort. When supplied, brand_filter() restricts to those respondent IDs and multiplies brand$data$weight by cohort$weight.

Value

An updated g6tr_brand object.