csvy 0.3.0 R Package Reference Manual

The csvy R package version 0.3.0 provides functions to import and export CSV data with YAML metadata headers (CSVY format).


csvy 0.3.0 R Package Reference Manual - cover page
Brand
csvy
Category
Application program
Document type
Programming Manual
Language
English
Pages
6
File format
PDF
File size
95 KB
Published
19 November, 2026
Updated
19 November, 2026
MD5 checksum
9E26E433D232E2F09D4BD0788F4D70B5

About this manual

The csvy package implements the CSVY file format, which places a YAML header on top of a regular CSV file to combine CSV simplicity with rich metadata. It offers two main functions, write_csvy and read_csvy, for exporting and importing data frames with embedded or external metadata.

Additional utilities include get_yaml_header to retrieve the YAML header from a file, read_metadata and write_metadata for handling external YAML or JSON metadata files, and colclass_dict as a dictionary of column classes for reading data. The package depends on data.table, jsonlite, and yaml, and is licensed under GPL-2.

What's inside

  • colclass_dict
  • csvy
  • get_yaml_header
  • read_csvy
  • read_metadata
  • write_csvy
  • write_metadata
  • Index

Specifications

Version0.3.0
LicenseGPL-2
Importstools, data.table, jsonlite, yaml
Suggeststestthat, datasets
MaintainerThomas J. Leeper
RepositoryCRAN
URLhttps://github.com/leeper/csvy

Frequently asked questions

How do I read a CSVY file into R?

Use read_csvy(file) to import CSVY data as a data.frame, with optional metadata file and detection arguments.

How do I write a data frame to CSVY format?

Use write_csvy(x, file) to export a data.frame to CSVY, with options for separator, decimal, and header commenting.

Download PDF (95 KB)