table2hashtable: Convert a table to a hashtable Take a table with a...

Description Usage Arguments Note Author(s)

Description

Convert a table to a hashtable Take a table with a key.column, and a value.column, and convert into a hashtable.

Usage

1
2
table2hashtable(x, key.column = 1, value.column = 2, make.unique = TRUE,
  sort.method = sort)

Arguments

x

a data.frame

key.column

the column index or name where the keys are

value.column

the column index or name where the values are

make.unique

logical: keep redundant key->value pairs?

sort.method

the method to use to sort the values for each key

Note

Hashtable keys have to be <255 characters in length.

Author(s)

Mark Cowley, 2009-07-13


drmjc/mjcbase documentation built on May 15, 2019, 2:27 p.m.