Learn R Programming

pRecipe (version 3.0.1-3)

trend: Trends

Description

The function trend computes linear slope.

Usage

trend(x)

# S4 method for Raster trend(x)

# S4 method for data.table trend(x)

# S4 method for character trend(x)

Value

Raster* object; data.table

Arguments

x

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

Details

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.