Skip to contents

An R6 mapping type that is limited to scalar atomic vector types only; can optionally be limited further to a specific atomic vector type (eg. “logical”).

Super class

tiledbsoma::MappingBase -> ScalarMap

Active bindings

type

The type that this ScalarMap is limited to

Methods

Inherited methods


Method new()

Usage

ScalarMap$new(type = "any")

Arguments

type

Limit the ScalarMap to a preset type; choose from:

  • any

  • numeric

  • integer

  • character

  • logical

Returns

An instantiated ScalarMap object with the type set to type


Method set()

Usage

ScalarMap$set(key, value)

Arguments

key

Key to set

value

Value to add for key, or NULL to remove the entry for key

Returns

[chainable] Invisibly returns self with value added as key


Method clone()

The objects of this class are cloneable with this method.

Usage

ScalarMap$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.