dplyr: Tidyverse methods for dtsurvey objects. '_id' and attributes...

dplyrR Documentation

Tidyverse methods for dtsurvey objects. '_id' and attributes are sticky, use as.data.frame to let dplyr's own methods drop them. Use these methods without the .dtsurvey suffix and after loading the tidyverse package with the generic (or after loading package tidyverse).

Description

Tidyverse methods for dtsurvey objects. '_id' and attributes are sticky, use as.data.frame to let dplyr's own methods drop them. Use these methods without the .dtsurvey suffix and after loading the tidyverse package with the generic (or after loading package tidyverse).

Usage

dplyr_reconstruct.dtsurvey(data, template)

select.dtsurvey(.data, ...)

dplyr_col_modify.dtsurvey(data, cols)

group_by.dtsurvey(...)

Arguments

data

data.frame object

template

template object to reconstruct

.data

data.frame object

...

other arguments

cols

cols to keep

Details

dplyr_reconstruct Add the sdes and stype attributes back on so dtsurvey aggregation function still work

select keeps the id column regardless whether it is selected or not; to deselect it, first pipe through as.data.frame to let dplyr's own select drop it.


dcaseykc/dtsurvey documentation built on March 9, 2024, 1:09 p.m.