as_zdd: Coerce an integer or string hash to a ZDD object

Description Usage Arguments Value Examples

View source: R/as_zdd.R

Description

Experimental lifecycle

as_zdd() turns an existing object, such as a numeric/integer value or a string that corresponds to a previously created ZDD, into a registered ZDD object of class zdd.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
as_zdd(x)

## S3 method for class 'zdd'
as_zdd(x)

## S3 method for class 'integer'
as_zdd(x)

## S3 method for class 'list'
as_zdd(x)

## S3 method for class 'numeric'
as_zdd(x)

## S3 method for class 'character'
as_zdd(x)

## S3 method for class 'logical'
as_zdd(x)

Arguments

x

the integer value of the node to be added or the string hash of the node to pull from the store

Value

the single variable elementary zdd (the so-called "set containing value")

Examples

1
2
3
as_zdd(3L)
as_zdd('d7281766b28bdc9025520edeeffecdd9')
#as_zdd('this one does not exist')  # this one throws an error

jordagaman/zddr documentation built on June 29, 2021, 4:23 a.m.