loadFile: Load file based on its format

Description Usage Arguments Details Value

View source: R/formats.R

Description

Tries to recognise the file format and parses the content of the given file accordingly.

Usage

1
2
3
4
5
6
7
loadFile(
  file,
  formats = loadFileFormats(),
  ...,
  verbose = FALSE,
  multiple = FALSE
)

Arguments

file

Character: file to parse

formats

List of file formats to check

...

Extra parameters passed to fread

verbose

Boolean: detail steps while parsing

multiple

Boolean: expect more than one file?

Details

The resulting data frame includes the attribute tablename with the name of the data frame

Value

Data frame with the contents of the given file if the file format is recognised; otherwise, returns NULL


psichomics documentation built on Nov. 8, 2020, 5:44 p.m.