aest_read_spreadsheet: wrapper function that calls one of vroom, read_csv or...

View source: R/aest_read_spreadsheet.R

aest_read_spreadsheetR Documentation

wrapper function that calls one of vroom, read_csv or read_excel

Description

Reads in a spreadsheet,, cleans the column names and appends a column containing the file name.

Usage

aest_read_spreadsheet(quoted_path, quoted_file, speed = "slow", ...)

Arguments

quoted_path

the (quoted) path to the file (within the project directory) e.g. "raw-data"

quoted_file

the (quoted) name of the file

speed

determines whether vroom or read_csv is used: read_csv is more robust, but slow, Default: 'slow'

...

additional parameters to pass.

Details

DETAILS

Value

a dataframe

Examples

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

rpmartin/aest documentation built on Oct. 22, 2022, 6:33 p.m.