with_min_cy: Select Items with Observations in a Minimum Number of...

View source: R/with_min_cy.R

with_min_cyR Documentation

Select Items with Observations in a Minimum Number of Distinct Country-Years

Description

with_min_cy is a convenience function for filtering data to be input to dcpo by the number of country-year-items observed

Usage

with_min_cy(x, min_cys)

Arguments

x

a data frame of survey items and marginals generated by dcpo_setup

min_yrs

the minimum number of distinct country-years needed for an item included in x to be retained

Value

a data frame


fsolt/DCPOtools documentation built on June 9, 2025, 4:10 p.m.