loadFile: Load file based on its format

View source: R/formats.R

loadFileR Documentation

Load file based on its format

Description

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

Usage

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


nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.