Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

write.vectorized.variable.in.string

Writes one or more variables (scalars, vectors or Rasters) in a string each, following *.inpts or Matlab-like syntax.


Description

Writes one or more variables (scalars, vectors or Rasters) in a string each, following *.inpts or Matlab-like syntax.

Usage

write.vectorized.variable.in.string(l, NAflag = -9999,
  matlab.syntax = FALSE, ...)

Arguments

l

a codelist object contained the variables (scalars, vectors or Rasters) which will be written in a string each.

NAflag

numeric. Default is -9999, see writeRasterxGEOtop.

matlab.syntax

logical value. Default is FALSE. If TRUE the file syntax is like the one of a *.m Matlab script file.

...

further aguments

Value

the string vector <NAME_VARIABLE>==<VALUES_VARIABLE>.

Note

Add Quote if necessary

See Also

Examples

a <- 1:5
l <- list(v=a,a=a)
out <- write.vectorized.variable.in.string(l,matlab.syntax=TRUE)
out

geotopbricks

An R Plug-in for the Distributed Hydrological Model GEOtop

v1.5.4
GPL (>= 2)
Authors
Emanuele Cordano, Daniele Andreis, Fabio Zottele
Initial release
2020-02-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.