pl_read: Read a set of PL Files

View source: R/pl_read.R

pl_readR Documentation

Read a set of PL Files

Description

PL files come in one of four types and are pipe-delimited with no header row. This function speedily reads in the files and assigns the appropriate column names and types.

Usage

pl_read(path, ...)

read_pl(path, ...)

Arguments

path

a path to a folder containing PL files. Can also be path or a URL for a ZIP file, which will be downloaded and unzipped.

...

passed on to readr::read_delim()

Value

A list of data frames containing the four PL files.

Examples


pl_ex_path <- system.file('extdata/ri2018_2020Style.pl', package = 'PL94171')
pl <- pl_read(pl_ex_path)

# or try `pl_read(pl_url("RI", 2010))`


PL94171 documentation built on Sept. 12, 2022, 1:06 a.m.