fpc (version 2.2-7)

randconf: 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.

See Also

sample

Examples

Run this code
# NOT RUN {
  randconf(10,3)
# }

Run the code above in your browser using DataCamp Workspace