hash (version 3.0.1)

make.keys: 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. It is not exported.

Usage

make.keys(key)

Arguments

Value

A character vector of valid keys/names

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.

See Also

hash make.names

Examples

Run this code
make.keys( letters )
  make.keys( 1:26 )

Run the code above in your browser using DataLab