Learn R Programming

fpc (version 2.2-13)

randconf: Generate a sample indicator vector

Description

Generates a logical vector of length n with p TRUEs.

Usage

randconf(n, p)

Value

A logical vector.

Arguments

n

positive integer.

p

positive integer.

See Also

Examples

Run this code
  randconf(10,3)

Run the code above in your browser using DataLab