Learn R Programming

strata (version 1.4.3)

build_quick_strata_project: Quickly build strata project with minimal input and standard names

Description

build_quick_strata_project will create a project with the specified number of strata - num_strata, with the specified number of laminae

  • num_laminae_per per stratum. The strata and laminae will be named stratum_1, stratum_2, etc. and s1_lamina_1, s1_lamina_2, etc.

Usage

build_quick_strata_project(project_path, num_strata = 1, num_laminae_per = 1)

Value

invisible dataframe of the survey of the strata project.

Arguments

project_path

A path to strata project folder.

num_strata

Number of strata to create.

num_laminae_per

Number of laminae to create per stratum.

Examples

Run this code
tmp <- fs::dir_create(fs::file_temp())
result <- build_quick_strata_project(tmp, 2, 2)
dplyr::glimpse(result)
main(tmp)
fs::dir_delete(tmp)

Run the code above in your browser using DataLab