rmti_parse_variables: Read MT3DMS single-line variables

Description Usage Arguments Value

View source: R/internals.R

Description

Read MT3DMS single-line variables

Usage

1
2
3
4
5
6
7
8
9
rmti_parse_variables(
  remaining_lines,
  n,
  width = 10,
  nlay = NULL,
  character = FALSE,
  format = "fixed",
  ...
)

Arguments

n

integer; number of variables to be returned. If zero for 'free' format, reads all values on a single line and does not check if n values are read or empty lines, '*' or '/' are present.

width

integer; length of a single variable. Only used when format is 'fixed'.

nlay

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

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 character fields of length 'width' and converts to numeric. Empty fields are set to zero.

...

ignored

Value

vector with values


rogiersbart/RMT3DMS documentation built on Oct. 16, 2021, 9:45 a.m.