cur_svy: Get the survey data for the current context

View source: R/svy_context.R

cur_svyR Documentation

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()

Value

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


srvyr documentation built on Sept. 11, 2024, 8:43 p.m.