Learn R Programming

PHENTHAUproc (version 1.1.1)

calc_last: Calculate last TRUE

Description

Takes multiple logical SpatRasters with time attribute and returns SpatRaster with time serial number of last TRUE layer time.

Usage

calc_last(x)

Value

SpatRaster with time serial number (origin = lubridate::origin) of last TRUE layer.

Arguments

x

SpatRaster - logical - with time attribute

See Also

Other Calculation: calc_first(), calc_mean()