rmfi_parse_variables: Read modflow variables If all are numbers, returns numeric,...

View source: R/internals.R

rmfi_parse_variablesR Documentation

Read modflow variables If all are numbers, returns numeric, otherwise returns character vector

Description

Read modflow variables If all are numbers, returns numeric, otherwise returns character vector

Usage

rmfi_parse_variables(
  remaining_lines,
  n,
  nlay = NULL,
  character = FALSE,
  format = "free",
  ...
)

Arguments

n

integer; number of variables to be returned. Only used when format is 'fixed'.

nlay

integer; number of layers for which values are to be read. Only used when format is 'free' and a 1D(NLAY) variable is read which may be specified on multiple lines.

character

logical; should a character vector be returned. Prevents conversion from character names to numeric. Defaults to FALSE. Useful if only characters are present on the line.

format

character, either 'free' or 'fixed'. When 'fixed', reads 10-character fields and converts to numeric. Empty fields are set to zero.

...

ignored


rogiersbart/RMODFLOW documentation built on Jan. 14, 2023, 4:21 a.m.