Learn R Programming

geotopbricks (version 1.5.8.2)

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,
  ...
)

Value

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

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

See Also

read.ascii.vectorized.brick

Examples

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


Run the code above in your browser using DataLab