read_cmep: Read CMEP File

Description Usage Arguments Examples

View source: R/read.R

Description

Read and parse CMEP file. These functions are mostly just simple wrappers around the more generic readr functions. The main enhancement is that they will parse an irregularly sized CMEP file and format the data as a regular table (data frame). read_cmep_chunked can be used to process files that may be too large to fit in memory.

Usage

1
2
3

Arguments

...

passed to read_lines or read_lines_chunked

parse

boolean; should the records be parsed?

unnest

boolean; should the data values be unnested? if FALSE (the default) then they are returned in a list column with nested tables

Examples

1
2
3
4
5
f <- system.file("extdata", "cmep.dat", package = "cmep", mustWork = TRUE)
read_cmep(f)
f <- system.file("extdata", "cmep.dat", package = "cmep", mustWork = TRUE)
cb_f <- function(x, pos) print(pos)
read_cmep_chunked(f, callback = cb_f, chunk_size = 2)

ajholguin/cmep documentation built on Aug. 14, 2019, 2:32 a.m.