loadFile {psichomics} | R 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`

[Package psichomics version 1.20.2 Index]