dplyr.adjustr_spec: 'dplyr' Methods for 'adjustr_spec' Objects

dplyr.adjustr_specR Documentation

dplyr Methods for adjustr_spec Objects

Description

Core dplyr verbs which don't involve grouping (filter, arrange, mutate, select, rename, and slice) are implemented and operate on the underlying table of specification parameters.

Usage

## S3 method for class 'adjustr_spec'
filter(.data, ..., .preserve = FALSE)

## S3 method for class 'adjustr_spec'
arrange(.data, ...)

## S3 method for class 'adjustr_spec'
rename(.data, ...)

## S3 method for class 'adjustr_spec'
select(.data, ...)

## S3 method for class 'adjustr_spec'
slice(.data, ..., .preserve = FALSE)

Arguments

.data

the adjustr_spec object

...

additional arguments to underlying method

.preserve

as in filter and slice

Examples

## Not run: 
spec = make_spec(eta ~ student_t(df, 0, 1), df=1:10)

arrange(spec, desc(df))
slice(spec, 4:7)
filter(spec, df == 2)

## End(Not run)

CoryMcCartan/adjustr documentation built on June 25, 2022, 4:44 p.m.