Learn R Programming

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

srvyr (version 0.1.1)

'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

7,696

Version

0.1.1

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Greg Freedman

Last Published

April 3rd, 2016

Functions in srvyr (0.1.1)

as_survey

Create a tbl_svy from a data.frame
summarise

Summarise multiple values to a single value.
unweighted

Calculate the an unweighted summary statistic from a survey
dplyr_single

Single table verbs from dplyr
survey_ratio

Calculate the ratio and its variation using survey methods
groups

Get/set the grouping variables for tbl.
cascade

Summarise multiple values into cascading groups
srvyr

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

Calculate the quantile and its variation using survey methods
group_by

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

Summarise and mutate multiple columns.
as_survey_rep

Create a tbl_svy survey object using replicate weights
tbl_svy

tbl_svy object.
tbl_vars

List variables produced by a tbl.
as_survey_design

Create a tbl_svy survey object using sampling design
as_survey_twophase

Create a tbl_svy survey object using two phase design
%>%

Pipe operator
survey_mean

Calculate the mean and its variation using survey methods
survey_total

Calculate the total and its variation using survey methods