Learn R Programming

mmand (version 1.6.3)

binarise: Binarise a numeric array

Description

This function binarises an array, setting all nonzero elements to unity.

Usage

binarise(x)

Value

A morphed array with the same dimensions as the original array.

Arguments

x

An object that can be coerced to an array, or for which a morph method exists.

Author

Jon Clayden <code@clayden.org>

See Also

morph for the function underlying this operation, and erode for mathematical morphology functions.