dplyr.policy: Generate a new policy after applying various dplyr verbs

Description Usage Arguments Details Value

Description

Generate a new policy after applying various dplyr verbs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'policy'
filter(.data, ...)

## S3 method for class 'policy'
mutate(.data, ...)

## S3 method for class 'policy'
group_by(.data, ...)

## S3 method for class 'policy'
ungroup(x, ...)

Arguments

.data

a policy object

...

arguments passed to corresponding dplyr verb

x

a policy object

Details

Note that the policy object is never refit, and only the $data element is manipulated. In certain cases (e.g., after a filter), the policy might need to be refit via estimate_policy.

Value

new policy object with altered data


jongbinjung/undi documentation built on May 8, 2019, 11:56 p.m.