Learn R Programming

srvyr (version 1.3.0)

cur_svy: Get the survey data for the current context

Description

This is a helper to allow srvyr's syntactic style. In particular, it tells functions inside of a summarize call what survey to use (for the current group with cur_svy() or the complete survey for cur_svy_full(). In general, users will not have to worry about getting (or setting) the current context's survey, unless they are trying to extend srvyr. See vignette("extending-srvyr") for more details. current_svy() is deprecated, but returns the same value as cur_svy().

Usage

cur_svy()

cur_svy_full()

current_svy()

Arguments

Value

a tbl_svy (or error if called with no survey context)