household: Household a list of entities

View source: R/converter-household.R

householdR Documentation

Household a list of entities

Description

The display function has a built-in option to household, so you will usually not need to use this function. Other use-cases are best solved with married_to.

Usage

household(...)

Arguments

...

one or more existing discoveryengine definition(s), and/or individual entity id(s)

Details

Will return just the primary ID for a household, instead of both spouses. Note that it will not household additional parts of the definition that are added after the 'household' command (see examples).

See Also

married_to

Examples

is_wealthy = has_capacity(1:7)
is_wealthy_hh = household(is_wealthy)

## this will NOT household the additional part of the definition
is_wealthy_hh %or% lives_in_msa(san_francisco)

## better to get everything together, then household:
household(is_wealthy %or% lives_in_msa(san_francisco))


tarakc02/discoveryengine documentation built on Sept. 26, 2023, 12:17 a.m.