maNum2Logic: Convert a numeric vector of indices to a logical vector

Description Usage Arguments Value Author(s) Examples

View source: R/maComp.R

Description

This function converts a numeric vector of indices to a logical vector. It is used for subsetting purposes.

Usage

1

Arguments

n

the length of the logical vector to be produced.

subset

a numeric vector of indices. A logical vector may also be supplied, in which case it is also the value of the function.

Value

a logical vector.

Author(s)

Sandrine Dudoit, http://www.stat.berkeley.edu/~sandrine.

Examples

1
maNum2Logic(10, 1:3)

marray documentation built on Nov. 8, 2020, 6:46 p.m.