as_srvyr_result_df: Create a srvyr results data.frame which is automatically...

View source: R/survey_statistics_helpers.R

as_srvyr_result_dfR Documentation

Create a srvyr results data.frame which is automatically unpacked by srvyr

Description

srvyr uses data.frame columns wrapped by this function to know when to automatically unpack the results for the user. When developing extensions (see vignette extending-srvyr), use this function to wrap the result in so that summarize knows to unpack them.

Usage

as_srvyr_result_df(x)

Arguments

x

A data.frame

Value

An object with the srvyr_result_df added


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