write_naaccr: Write records in NAACCR format

View source: R/write_naaccr.R

write_naaccrR Documentation

Write records in NAACCR format

Description

Write records from a naaccr_record object to a connection in fixed-width format, according to a specific version of the NAACCR format.

Usage

write_naaccr(records, con, version = NULL, format = NULL, encoding = "UTF-8")

Arguments

records

A naaccr_record object.

con

Either a character string naming a file or a connection open for writing.

version

An integer specifying the NAACCR format version for parsing the records. Use this or format, not both. If both version and format are NULL (the default), the most recent version is used.

format

A record_format object for writing the records.

encoding

String specifying the character encoding for the output file.


naaccr documentation built on Nov. 23, 2022, 5:06 p.m.