Learn R Programming

RPhosFate (version 2.0.1)

firstRun,RPhosFate-method: First run

Description

Calls erosionPrerequisites, erosion, emission, transportPrerequisites and transport in the mentioned order. While transport is called for the specified substance only, emission is called for all substances whose top soil concentrations have been provided.

Usage

# S4 method for RPhosFate
firstRun(x, substance = "PP")

Value

An S4 RPhosFate river catchment object and side effects in the form of raster files.

Arguments

x

An S4 RPhosFate river catchment object.

substance

A character string specifying the substance to calculate.

See Also

subsequentRun

Examples

Run this code
# \donttest{
# temporary demonstration project copy
cv_dir <- demoProject()
# load temporary demonstration project
x <- RPhosFate(
  cv_dir = cv_dir,
  ls_ini = TRUE
)

x <- firstRun(x, "SS")# }

Run the code above in your browser using DataLab