Learn R Programming

kutils (version 0.93)

smartRead: read file after deducing file type from suffix.

Description

read file after deducing file type from suffix.

Usage

smartRead(file, ...)

Arguments

file
name of file to be imported, including path to file. file name must end in "csv", "xlsx" or "rds"
...
additional arguments for read.csv or read.xlsx.

Value

A data frame or matrix.