set_idx: set_idx

View source: R/set_idx.R

set_idxR Documentation

set_idx

Description

set_idx

Usage

set_idx(x, idx_name = "tidyee_index")

Arguments

x

tidyee or ee$ImageCollection class object

idx_name

name for index to create (default = "tidyee_index")

Value

tidyee or ee$ImageCollection class object with new index containing sequential 0-based indexing

Examples

## Not run: 
library(rgee)
library(tidyrgee)
ee_Initialize()
modis_link <- "MODIS/006/MOD13Q1"
modisIC <- ee$ImageCollection(modis_link)
modis_ndvi_tidy <- as_tidyee(modisIC) |>
  select("NDVI")
modis_ndvi_tidy |>


## End(Not run)

r-tidy-remote-sensing/tidyrgee documentation built on April 9, 2023, 4:53 p.m.