Learn R Programming

⚠️There's a newer version (1.3.1) of this package.Take me there.

srvyr (version 0.1.0)

'dplyr'-Like Syntax for Summary Statistics of Survey Data

Description

Use piping, verbs like 'group_by' and 'summarize', and other 'dplyr' inspired syntactic style when calculating summary statistics on survey data using functions from the 'survey' package.

Copy Link

Version

Install

install.packages('srvyr')

Monthly Downloads

10,113

Version

0.1.0

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Freedman

Last Published

January 16th, 2016

Functions in srvyr (0.1.0)

srvyr

svrvyr: A package for 'dplyr'-Like Syntax for Summary Statistics of Survey Data.
tbl_svy

tbl_svy object.
summarise

Summarise multiple values to a single value.
survey_ratio

Calculate the ratio and its variation using survey methods
unweighted

Calculate the an unweighted summary statistic from a survey
as_survey_rep

Create a tbl_svy survey object using replicate weights
dplyr_single

Single table verbs from dplyr
as_survey_twophase

Create a tbl_svy survey object using two phase design
survey_quantile

Calculate the quantile and its variation using survey methods
survey_mean

Calculate the mean and its variation using survey methods
tbl_vars

List variables produced by a tbl.
groups

Get/set the grouping variables for tbl.
mutate_each

Summarise and mutate multiple columns.
group_by

Group a (survey) dataset by one or more variables.
survey_total

Calculate the total and its variation using survey methods
%>%

Pipe operator
as_survey

Create a tbl_svy from a data.frame
as_survey_design

Create a tbl_svy survey object using sampling design