write.vectorized.variable.in.string: Writes one or more variables (scalars, vectors or Rasters) in...

View source: R/write.vectorized.variable.in.string.R

write.vectorized.variable.in.stringR Documentation

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 list 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

read.ascii.vectorized.brick

Examples

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



geotopbricks documentation built on May 29, 2024, 8:10 a.m.