Learn R Programming

yamlet (version 1.2.1)

as_dvec.logical: Coerce Logical to Decorated Vector

Description

Coerces logical to decorated vector. Assigns class 'dvec' and any named attributes in dots.

Usage

# S3 method for logical
as_dvec(x, ...)

Value

dvec

Arguments

x

logical

...

attributes to assign

See Also

Other dvec: [.dvec(), [<-.dvec(), [[.dvec(), [[<-.dvec(), as.data.frame.dvec(), as_dvec(), as_dvec.character(), as_dvec.complex(), as_dvec.dvec(), as_dvec.integer(), as_dvec.numeric(), c.dvec(), classified.dvec(), desolve.dvec(), explicit_guide.data.frame(), format.dvec(), implicit_guide.dvec(), length.dvec(), print.dvec(), resolve.classified(), resolve.dvec(), unclassified.dvec()

Examples

Run this code
as_dvec(c(FALSE, TRUE))

Run the code above in your browser using DataLab