read_xcsv: read_xcsv

View source: R/useful.R

read_xcsvR Documentation

read_xcsv

Description

Reads flat files: either csv or excel

Usage

read_xcsv(file, sheet = NULL, verbose = FALSE)

Arguments

file

The file path that points to either a csv or excel file ending in csv, xls, xlsx, or xlsm

sheet

For excel files, the sheet name as a string or number as an integer

verbose

A boolean to specify whether to print warnings

Details

Reads csv or excel files with the suffixes csv, xls, xlsx, xlsm

Value

data.frame from flatfile

Examples

read_xcsv("https://raw.githubusercontent.com/paladinic/data/main/ecomm_data.csv")  

linea documentation built on Sept. 15, 2022, 9:06 a.m.