randconf: Generate a sample indicator vector

randconfR Documentation

Generate a sample indicator vector

Description

Generates a logical vector of length n with p TRUEs.

Usage

randconf(n, p)

Arguments

n

positive integer.

p

positive integer.

Value

A logical vector.

Author(s)

Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en/

See Also

sample

Examples

  randconf(10,3)

fpc documentation built on Sept. 24, 2024, 9:07 a.m.