make_keys: creates/coerces objects to proper hash keys

Description Usage Arguments Details Value Note See Also Examples

View source: R/make_keys.R

Description

Notes:

Usage

1
2
3
make_keys(key)

make.keys(key)

Arguments

key

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

Details

Given a vector of any type, make_keys tries to coerce it into a character vector that can be used as a hash key. It is just a wrapper around base::as.character() with some additional error checking.

#' make_keys will replace make.keys in a future release.

Value

A character vector of valid keys/names

Note

This is used internally by the hash package and should not be normally needed. It is not exported.

See Also

Examples

1
2
3
4
5
## Not run: 
  make_keys( letters )
  make_keys( 1:26 )

## End(Not run)    

decisionpatterns/r-hash documentation built on Feb. 6, 2019, 10:27 p.m.