scale_doy {irg} | R Documentation |
Scale DOY
Description
Scale the day of the year to 0-1 (like NDVI).
Usage
scale_doy(DT, doy = "DayOfYear")
Arguments
DT |
data.table of NDVI time series |
doy |
julian day column. default is 'DayOfYear'. |
Value
data.table with appended 't' column of 0-1 scaled day of year.
See Also
Other scale:
scale_ndvi()
Examples
# Load data.table
library(data.table)
# Read in example data
ndvi <- fread(system.file("extdata", "sampled-ndvi-MODIS-MOD13Q1.csv", package = "irg"))
# Scale DOY
scale_doy(ndvi)
[Package irg version 0.1.6 Index]