Learn R Programming

tictactoe (version 0.2.2)

vectorized-hash-ops: Vectorized Hash Operations

Description

Vectorized Hash Operations

Usage

haskeys(x, ...)

setvalues(x, ...)

getvalues(x, ...)

# S3 method for xhash getvalues(x, states, ...)

# S3 method for xhash setvalues(x, states, values, ...)

# S3 method for xhash haskeys(x, states, ...)

Arguments

x
object
...
additional arugments to determine the keys
states
state object
values
values to assign

Value

  • haskeys returns a logical vector
  • setvalues returns a reference to the object
  • getvalues returns a list of values