read_latest: Read the latest CSV or XLSX file with a given pattern in a...

Description Usage Arguments Value See Also

Description

Read the latest CSV or XLSX file with a given pattern in a given folder.

Usage

1
2
read_latest(srcDir = ".", pattern, skip = 0, sheet = 1,
  R.identifiers = FALSE)

Arguments

srcDir

The search directory

pattern

A regular expression matching the file you want to find

skip

The number of lines to skip in the input file, defaults to 0

sheet

The sheet number if reading a apreadsheet, defaults to 1

R.identifiers

Convert the column names to valid R identifiers, defaults to FALSE.

Value

A data frame with the colnames either as exact strings matching the header values, or as valid R identifies for compatibility with read.csv().

See Also

find_latest


alphajuliet/ajworkr documentation built on May 11, 2019, 11:21 p.m.