with_min_yrs: Select Countries with Observations in a Minimum Number of...

View source: R/with_min_yrs.R

with_min_yrsR Documentation

Select Countries with Observations in a Minimum Number of Distinct Years

Description

with_min_yrs is a convenience function for filtering data to be input to dcpo by the number of country-years observed

Usage

with_min_yrs(x, min_yrs)

Arguments

x

a data frame of survey items and marginals generated by dcpo_setup

min_yrs

the minimum number of distinct years needed for a country included in x to be retained

Value

a data frame


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