SFSW2_read_csv: Read a comma-separated value (csv) file

Description Usage Arguments Value

View source: R/IO_datafiles.R

Description

Call function read.csv.raw, if available, or else, read.csv. read.csv.raw can be much faster, particularly for large files. It reads, however, only nrowsClasses rows to determine the class of a column unlike read.csv which uses all rows to determine the column class.

Usage

1
SFSW2_read_csv(file, stringsAsFactors = FALSE, use_iotools = TRUE, ...)

Arguments

file

A character string. The path to the file which is to be read.

stringsAsFactors

A logical value. Should character vectors be converted to factors?

use_iotools

A logical value. If TRUE and if iotools available, then read.csv.raw instead of read.csv is used to read the file.

...

Further arguments to be passed to read.csv.raw or read.csv.

Value

A data frame (data.frame) containing a representation of the data in the file.


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.