pl_read {PL94171}R 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))`


[Package PL94171 version 1.1.2 Index]