powered by
Scale the day of the year to 0-1 (like NDVI).
scale_doy(DT, doy = "DayOfYear")
data.table of NDVI time series
julian day column. default is 'DayOfYear'.
data.table with appended 't' column of 0-1 scaled day of year.
Other scale: scale_ndvi()
scale_ndvi()
# NOT RUN { # 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) # }
Run the code above in your browser using DataLab