create_and_save_hexjson: Convert tabular data to hexjson, add unique coordinates, and...

Description Usage Arguments

View source: R/hexjson.R

Description

Converts a dataframe of codes, names and other data to a hexjson string, adding unique column and row coordinates for each hex, then saves it to a file. The values in the first column are used as the key for each hex in the hexjson and therefore must be unique. This function can be used to produce initial hexjson output which can then be edited in a hexjson editor.

Usage

1
create_and_save_hexjson(data, filename, layout = "odd-r")

Arguments

data

A dataframe of labels and data to store in each hex.

filename

The name of an output file for the hexjson.

layout

The coordinate layout of the hexsjon. Must be one of: odd-r, even-r, odd-q, even-q.


houseofcommonslibrary/clhex documentation built on April 28, 2021, 3:12 a.m.