get_roll_dates: get_roll_dates

View source: R/ee_rolling_statiistic.R

get_roll_datesR Documentation

get_roll_dates

Description

get_roll_dates

Usage

get_roll_dates(x, window, time_unit)

Arguments

x

tidyee object

window

numeric time window to calculate rolling statistic on. Currently can only roll right

time_unit

character unit of temporal aggregation (default = month).

Value

'ee$List' composed of 'ee$Date' ready for using with ee$List$map

Examples

## Not run: 
library(tidyrgee)
library(rgee)
library(dplyr)
ee_Initialize()
chirps_link <- "UCSB-CHG/CHIRPS/DAILY"
chirps <- ee$ImageCollection(chirps_link)
chirps_tidy <- as_tidyee(chirps)
dates_to_map <- get_roll_dates(x=chirps_tidy, window=3,time_unit="month")

## End(Not run)

impact-initiatives-geospatial/surveyGEER documentation built on Feb. 4, 2023, 12:13 p.m.