Learn R Programming

srvyr (version 1.3.0)

as_srvyr_result_df: 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)

Value

An object with the srvyr_result_df added

Arguments

x

A data.frame