make.keys: creates/coerces objects to proper hash keys

View source: R/make-keys.R

make.keysR Documentation

creates/coerces objects to proper hash keys

Description

Given an vector of any type, make.keys tries to coerce it into a character vector that can be used as a hash key. This is used internally by the hash package and should not be normally needed.

Usage

make.keys(key)

Arguments

key

An object that represents the key(s) to be coerced to a valid hash keys.

Details

This function is used internally by the hash class to ensure that the keys are valid. There should be no need to use this externally and is only documented for completeness.

Value

A character vector of valid keys

Author(s)

Christopher Brown

See Also

See also as hash

Examples


  make.keys( letters )
  make.keys( 1:26 ) 


hash documentation built on Aug. 20, 2023, 1:08 a.m.