summarise {tidyrgee}R Documentation

Summary pixel-level stats for ee$ImageCollection or tidyrgee objects with ImageCollections

Description

Summary pixel-level stats for ee$ImageCollection or tidyrgee objects with ImageCollections

Usage

## S3 method for class 'ee.imagecollection.ImageCollection'
summarise(.data, stat, ...)

## S3 method for class 'tidyee'
summarise(.data, stat, ..., join_bands = TRUE)

Arguments

.data

ee$Image or ee$ImageCollection

stat

character stat/function to apply

...

other arguments

join_bands

logical (default= TRUE) if multiple stats selected should bands be joined?

Value

ee$Image or ee$ImageCollection where pixels are summarised by group_by and stat

ee$Image or ee$ImageCollection where pixels are summarised by group_by and stat

ee$Image or ee$ImageCollection where pixels are summarised by group_by and stat

See Also

summarise for information about summarise on normal data tables.

Examples

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

## End(Not run)

[Package tidyrgee version 0.1.0 Index]