read_pid: Read dat1.pid or dat1.txt files

Description Usage Arguments Value

Description

Read dat1.pid or dat1.txt files

Usage

1
read_pid(file, data = TRUE, metadata = FALSE, verbose = FALSE, ...)

Arguments

file

path to a dat1.pid or dat1.txt file

data

boolean, whether to extract the data table

metadata

boolean, whether to extract the metadata from the header

verbose

boolean, whether to print information

...

further arguments, passed to fread

Value

When data is requested, the function returns it as a data.frame. When metadata is requested, it is returned as a named list (key-value pairs). When both are requested, the result is the data as a data.frame with an attribute named meta containing the metadata list.


jiho/zooprocessr documentation built on May 19, 2019, 10:31 a.m.