write_bin: Write data table into bin file

Description Usage Arguments

View source: R/convert_bin.R

Description

Write the data table into a TransCAD binary file (.bin) given the filename and description. If the table has column labels, those will become field descriptions.

Usage

1
write_bin(binData, binFilename, description = "", dnames = NA, n2i = TRUE)

Arguments

binData

data.frame The data table to write

binFilename

string The file in which to write

description

string A description of the binData

dnames

Named vector of display names where each name is a column name and each value is the display name to use. For example: c("hh" = "Households") will assign the display name "Households" to column "hh".

n2i

bool Whether to try to convert numerics to integers. This leads to integer columns in the bin (instead of real), which are smaller and easier to read. Defaults to TRUE. Conversion does not happen if the column contains decimal values.


dkyleward/caliperR documentation built on Feb. 13, 2021, 10:35 p.m.