Learn R Programming

adapr (version 2.0.0)

guess.read.fcn: Return function for reading common file types

Description

Return function for reading common file types

Usage

guess.read.fcn(filename)

Arguments

filename

for file to be read

Value

function for reading

Details

Uses the file suffix to return csv, read.delim, read.xls

Examples

Run this code
# NOT RUN {
 identical(utils::read.csv,guess.read.fcn("data.csv"))
# }

Run the code above in your browser using DataLab