readPrjTextVals: Reads text values from a CRHM project text object

View source: R/readPrjTextVals.R

readPrjTextValsR Documentation

Reads text values from a CRHM project text object

Description

Reads text values from a project file variable. The number of values to be read in does not need to be specified. This is an internal function and is not able to be called by a function outside of CRHMr, as it is not exported. This documentation is for maintenance purposes.

Usage

readPrjTextVals(prj, searchString, valueCount)

Arguments

prj

Required. A CRHM file read into memory as a sequence of lines, as returned from readPrj.

searchString

Required. The identifying string.

valueCount

Required. The number of values to be read in.

Value

If successful, returns a vector with the numeric values. If unsuccessful, returns the value FALSE.

Examples

## Not run: 
hru_names <- readPrjTextVals(Bologna,'hru_names',19)
## End(Not run)


CentreForHydrology/CRHMr documentation built on April 6, 2024, 5:27 p.m.