create_strata_dirs: Create dirs for strata

Description Usage Arguments Details

View source: R/images.R

Description

Create directories for each strata within each product-unit directory

Usage

1
create_strata_dirs(inventory_df, market_path, strata_vars, dir)

Arguments

inventory_df

Data frame. Contains an inventory of the unique product-units with images.

market_path

Character. File path to the combined market file.

strata_vars

Character vector. Names of the variables that together form strata.

dir

Character. Directory where unit directories should be created.

Details

Strata are the user-defined set of variables specified in strata_vars. The directory names will be hyphen-separated combinations of the variables that compose a strata (e.g., "{region} - {urban_rural}")


arthur-shaw/nsuoutils documentation built on Dec. 19, 2021, 4:41 a.m.