parseValidFile {psichomics} | R Documentation

## Parse file given a list of file formats

### Description

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

### Usage

    parseValidFile(file, formats, ...)

### Arguments

`file` | Character: file to parse
`formats` | List of file formats to check
`...` | Extra parameters passed to fread

### 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.6.2 Index]