surveytidy
Tidy 'dplyr'/'tidyr' Verbs for Survey Design Objects
surveytidy taught every dplyr verb to operate on a whole collection of surveys at once.
◆Recent moves
- 2mo ago
mutate() syncs metadata for across() recodes
Closes a hole in the metadata tracking that is the package's main promise: only explicitly named left-hand-side mutations were being logged, so columns recoded through dplyr::across() lost their labels and their place in the transformation log.
View source ↗ - 3mo ago
dplyr and tidyr verbs dispatch across survey collections
The tidy half of the collection abstraction surveycore had already introduced: data-masking, tidyselect, grouping, slicing and collapsing verbs now run per member and return a collection with its id, missing-variable policy and grouping preserved. Joins are refused outright with a typed error directing users to join before building the collection, and surveycore's constructors are re-exported so one library() call suffices.
View source ↗ - 5mo ago
Five label-aware recoding functions for use inside mutate()
The transformation layer the later structural work sits on. make_factor(), make_dicho(), make_binary(), make_rev() and make_flip() cover the recodes survey analysis repeats constantly, and all five propagate value labels and accept label and description arguments so metadata is attached in the same step rather than reapplied afterward.
View source ↗