changeSimulationsPath: Reset file paths in Simulations objects

Description Usage Arguments Value Author(s) Examples

View source: R/changeSimulationsPath.R

Description

Reset file paths in the values of Simulations objects and also in raster objects.

Usage

1
changeSimulationsPath(simulations, path)

Arguments

simulations

raster or Simulations

path

character with new path(s) for each of the layers

Value

The function returns simulations with replaced paths to the files. If simulations is in memory, it has no effect.

Author(s)

Kristina B. Helle, kristina.helle@uni-muenster.de

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# if data are taken from files, the paths need to be updated
## Not run: 
library(sensors4plumesData)
data(radioactivePlumes_area)
radioactivePlumes_area = changeSimulationsPath(radioactivePlumes_area,
c(paste0(path.package("sensors4plumesData"),
          "/extdata/radioactivePlumes_area_finaldose.grd"),
  paste0(path.package("sensors4plumesData"),
          "/extdata/radioactivePlumes_area_maxdose.grd"),
  paste0(path.package("sensors4plumesData"),
          "/extdata/radioactivePlumes_area_time.grd"))
)

## End(Not run)

KristinaHelle/sensors4plumes documentation built on May 7, 2019, 12:31 p.m.