Learn R Programming

PL94171 (version 1.2.1)

pl_read: 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, ...)

Value

A list of data frames containing the four PL files.

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()

Examples

Run this code
# \donttest{
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))`

Run the code above in your browser using DataLab