RdsBooleanVector

RdsBooleanVector

Boolean (i.e., boolean) vector from R.

Extends

Classes

RdsBooleanVector

Methods

attribute(i) → {RdsObject}

Source:
Overrides:
Parameters:
Name Type Description
i number | string

Index or name of the attribute of interest.

Returns:

Value of the attribute.

Type
RdsObject

attributeNames() → {Array}

Source:
Overrides:
Returns:

Names of all attributes.

Type
Array

findAttribute(name) → {number}

Source:
Overrides:
Parameters:
Name Type Description
name string

Name of the attribute of interest.

Returns:

Index of name in the array of attributes from attributeNames. If name is not present, -1 is returned.

Type
number

free()

Source:
Overrides:

Free the memory on the Wasm heap for this object.

length()

Source:
Overrides:

type() → {string}

Source:
Overrides:
Returns:

Type of the object.

Type
string

values(optionsopt) → {Int32Array|Int32WasmArray}

Source:
Parameters:
Name Type Attributes Default Description
options object <optional>
{}

Optional parameters.

Properties
Name Type Attributes Default Description
copy boolean | string <optional>
true

Whether to copy the results from the Wasm heap, see possibleCopy.

Returns:

Values of the logical vector. Zero values are falsey and values of 1 are truthy.

Type
Int32Array | Int32WasmArray