Learn R Programming

pRecipe (version 3.0.1-3)

muldpm: Multiply by days per month

Description

The function muldpm multiplies the value by days per month.

Usage

muldpm(x)

# S4 method for Raster muldpm(x)

# S4 method for data.table muldpm(x)

# S4 method for character muldpm(x)

Value

Raster* object; data.table

Arguments

x

Raster* object; data.table (see details); filename (character, see details)

Details

`x` object with monthly data in [units/day]

If `x` is a data.table, its columns should be named: "lon", "lat", "date", and "value"

If `x` is a filename, it should point to a *.nc file.

Examples

Run this code
if (FALSE) {
tavg_brick <- raster::brick('terraclimate_tavg.nc')
pet_od <- pet(method = "od", tavg = tavg_brick)
pet_od <- muldpm(pet_od)
}

Run the code above in your browser using DataLab