read_meta: Read CSV with iNZight metadata

View source: R/metadata_read.R

read_metaR Documentation

Read CSV with iNZight metadata

Description

This function will read a CSV file with iNZight metadata in the header. This allows plain text CSV files to be supplied with additional comments that describe the structure of the data to make import and data handling easier.

Usage

read_meta(file, preview = FALSE, column_types, ...)

Arguments

file

the plain text file with metadata

preview

logical, if TRUE only the first 10 rows are returned

column_types

optional column types

...

more arguments

Details

The main example is to define factor levels for an integer variable in large data sets.

Value

a data frame

Author(s)

Tom Elliott


iNZightTools documentation built on Oct. 12, 2023, 5:06 p.m.