Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

maNum2Logic

Convert a numeric vector of indices to a logical vector


Description

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

Usage

maNum2Logic(n=length(subset), subset=TRUE)

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)

Examples

maNum2Logic(10, 1:3)

marray

Exploratory analysis for two-color spotted microarray data

v1.68.0
LGPL
Authors
Yee Hwa (Jean) Yang <jeany@maths.usyd.edu.au> with contributions from Agnes Paquet and Sandrine Dudoit.
Initial release
2009-08-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.