convert_hexjson_from_csv: Convert a csv of data to hexjson and save to a file

Description Usage Arguments

View source: R/hexjson.R

Description

Converts a csv of codes, names, hexjson coordinates, and other_data to a hexjson string and 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. The values in columns q and r are the hexjson coordinates for columns and rows respectively. The values in any other columns are stored as properties of each hex.

Usage

1
convert_hexjson_from_csv(csv_file, hexjson_file, layout = "odd-r")

Arguments

csv_file

The name of a csv file of data to store in each hex.

hexjson_file

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.