get_sample_systematic: Draw a systematic sample from a dataset of all potential...

Description Usage Arguments Value Author(s) Examples

View source: R/get_sample_systematic.R

Description

Draw a systematic sample from a dataset of all potential samples

Usage

1
get_sample_systematic(x, n_sample, rounding = c("floor", "ceiling"))

Arguments

x

A data.frame of all potential samples

n_sample

Number of sample required

rounding

Should the result be rounded up (ceiling) or rounded down (floor)? Default is rounded down.

Value

A data.frame drawn from x that contains the sample selected systematically

Author(s)

Ernest Guevarra

Examples

1
get_sample_systematic(x = village_list, n_sample = 30)

ernestguevarra/surveysampler documentation built on Jan. 2, 2022, 4:25 a.m.