Convert Named Vector to Set

as_Set(A)

Arguments

A

A named vector or matrix to build a new Set.

Value

A Set object.

Examples

A <- c(a = 0.1, b = 0.2, p = 0.3, q = 0)
as_Set(A)
#> {a [0.1], b [0.2], p [0.3]}