create_funstr: Create a string ("funstr") to be used in functions...

View source: R/idf_utils.r

create_funstrR Documentation

Create a string ("funstr") to be used in functions read_raster() and write_raster().

Description

Create a string ("funstr") to be used in functions read_raster() and write_raster().

Usage

create_funstr(s, pattern = funstr_ptrn(), replacement = "x")

Arguments

s

Blueprint of the string to be created, with the variable between square brackets.

pattern

character string containing a regular expression.

replacement

Symbol to replace the variable with in "s"

Value

String ("funstr") to be used in functions read_raster() and write_raster()

Examples

create_funstr("[A]*100+[B]", replacement=c("y","x"))

KeesVanImmerzeel/idf documentation built on Jan. 13, 2025, 3:23 a.m.