scale_doy | R Documentation |
Scale the day of the year to 0-1 (like NDVI).
scale_doy(DT, doy = "DayOfYear")
DT |
data.table of NDVI time series |
doy |
julian day column. default is 'DayOfYear'. |
data.table with appended 't' column of 0-1 scaled day of year.
Other scale:
scale_ndvi()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.