ee_extract_featurecollection: Extract parts of and EE FeatureCollection

ee_extract_featurecollectionR Documentation

Extract parts of and EE FeatureCollection

Description

Extract parts of and EE FeatureCollection

Usage

## S3 method for class 'ee.featurecollection.FeatureCollection'
x[[index]]

Arguments

x

ee$FeatureCollection.

index

Integer. Index specifying elements to extract or replace.

Value

An ee$FeatureCollection

Examples

## Not run: 
library(rgee)
library(rgeeExtra)
library(sf)

ee_Initialize(gcs = TRUE, drive = TRUE)
extra_Initialize()

# Define a Image or ImageCollection: Terraclimate
fc_tiger <- ee$FeatureCollection('TIGER/2016/Roads')
fc_tiger_subset <- fc_tiger[[1:100]]
Map$centerObject(fc_tiger_subset)
Map$addLayer(fc_tiger_subset)

## End(Not run)

r-earthengine/rgeeExtra documentation built on Dec. 7, 2023, 9:03 p.m.