ReadDataFile {hivPlatform}R Documentation

ReadDataFile

Description

Read content of a data file, either Excel or text.
It is a wrapper around ReadExcelFile and ReadTextFile. Appropriate loading function is resolved by the extension of fileName.

Usage

ReadDataFile(fileName, fileType, ...)

Arguments

fileName

Name of file to read. Required.

fileType

Type of data to read. Required if fileName has no file extension, otherwise optional.

...

Additional parameters passed to ReadExcelFile or ReadTextFile. Optional.

Value

data.table object.

Examples

## Not run: 
ReadDataFile(fileName)
ReadDataFile(fileName, "xlsx")
ReadDataFile(fileName, "csv")

## End(Not run)


[Package hivPlatform version 2.0.5 Index]