randconf {fpc}R 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 hennig@math.uni-hamburg.de http://www.math.uni-hamburg.de/home/hennig/

See Also

sample

Examples

  randconf(10,3)

[Package fpc version 1.1-2 Index]