Learn R Programming

IFC (version 0.1.7)

data_add_pop_sample: Population Sampling

Description

Creates a sample from a population

Usage

data_add_pop_sample(obj, pop, size, new_name, random_seed = NULL, ...)

Value

an IFC_data object with sampled pop added.

Arguments

obj

an `IFC_data` object extracted by ExtractFromDAF(extract_features = TRUE) or ExtractFromXIF(extract_features = TRUE).

pop

name of the population to sample.

size

a non-negative integer giving the number of items to choose.

new_name

name of the exported population. When missing the default, a random name will be given.

random_seed

a single value, interpreted as an integer, or NULL to be used with set.seed() from base. Default is NULL.

...

Other arguments to be passed.

Details

population is exported as tagged population.