flag: Flag a constitutency

View source: R/custom-flag.R

flagR Documentation

Flag a constitutency

Description

Use within a custom chunk to "flag" a constituency with a Y/N column. See examples

Usage

flag(constituency)

Arguments

constituency

A constituency defined with the Disco Engine

See Also

custom

Examples

## among those with a rating of 1, who attended an event in 2016?
wealthy = has_capacity(1)
event_attendee = attended_event(from = 20160101, to = 2016)

wealthy %>%
  custom(
    event_attendee_16 = flag(event_attendee)
  )


cwolfsonseeley/discoappend documentation built on March 17, 2022, 8:36 p.m.