ra2ba: Convert Real Valued Array to Binary Array

Description Usage Arguments Author(s) Examples

View source: R/multbin.R

Description

Converts all values of the real valued array x to binary values by thresholding at 0.

Usage

1
ra2ba(x)

Arguments

x

array of arbitrary dimension

Author(s)

Friedrich Leisch

Examples

1
2
x <- array(rnorm(10), dim=c(2,5))
ra2ba(x)

Example output

     [,1] [,2] [,3] [,4] [,5]
[1,]    0    0    0    0    1
[2,]    1    1    1    0    1

bindata documentation built on Jan. 29, 2021, 5:06 p.m.

Related to ra2ba in bindata...