Learn R Programming

weyl (version 0.0-7)

drop: Drop redundant information

Description

Coerce constant weyl objects to numeric

Usage

drop(x)

Value

Returns either a length-one numeric vector or its argument, a weyl object

Arguments

x

Weyl object

Author

Robin K. S. Hankin

Details

If its argument is a constant weyl object, coerce to numeric.

Examples

Run this code
a <- rweyl() + 67
drop(a)

drop(idweyl(9))

drop(constant(a,drop=FALSE))

Run the code above in your browser using DataLab