group_by {tidyrgee}R Documentation

Group an imageCollection or tidyee object with Imagecollections by a parameter

Description

Group an imageCollection or tidyee object with Imagecollections by a parameter

Arguments

.data

ee$ImageCollection or tidyee object

...

group_by variables

.add

When FALSE, the default, group_by() will override existing groups. To add to the existing groups, use .add = TRUE.

This argument was previously called add, but that prevented creating a new grouping variable called add, and conflicts with our naming conventions.

.drop

Drop groups formed by factor levels that don't appear in the data? The default is TRUE except when .data has been previously grouped with .drop = FALSE. See group_by_drop_default() for details.

Value

ee$ImageCollection with grouped_vars attribute

See Also

group_by for information about group_by on normal data tables.

Examples

## Not run: 
library(tidyrgee)
ee_Initialize()
modis_ic <- ee$ImageCollection("MODIS/006/MOD13Q1")
modis_ic |>
   filter(date>="2016-01-01",date<="2019-12-31") |>
   group_by(year)

## End(Not run)

[Package tidyrgee version 0.1.0 Index]