Call the appropriate function required to read a table file and return the table as a dataframe object.
Source:R/general_misc_utils.R
read_file.Rd
read_file
automatically detects the format of a file provided as filename
and calls the appropriate function to read the table file.
Arguments
- filename
(Character) Name or path of the table file to read. Can be of type CSV, XLS, XLSX, TSV, or TXT.
- csvsep
(Character) separator used in CSV file (ignored for other file types).
- dec
(Character) decimal separator used in CSV, TSV and TXT files.
- na.strings
(Character) If a table cell contains the indicated string, it will be converted to NA.
- sheet
(Numeric or Character) Number or name of a sheet in XLS or XLSX files (optional). Default:
";"