SFSW2_read_inputfile: Read the data from a 'rSFSW2-inputfile'

Description Usage Arguments Value

View source: R/IO_datafiles.R

Description

‘rSFSW2-inputfiles’ are comma-separated value files with

Usage

1
SFSW2_read_inputfile(file, header_rows = 1, use_iotools = TRUE, ...)

Arguments

file

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

header_rows

An integer value. The row number which contains the header.

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 list of length two with the elements

use

A named logical vector. The names are from the first row of the file and the values are FALSE if the second row of the file contains a 0 and TRUE otherwise. The first entry, corresponding to column “Label” is always FALSE.

data

A data frame (data.frame) containing a representation of the values in the file with column names from the first row of the file.


DrylandEcology/rSFSW2 documentation built on Aug. 18, 2020, 1:27 p.m.