ee_extract_featurecollection | R Documentation |
Extract parts of and EE FeatureCollection
## S3 method for class 'ee.featurecollection.FeatureCollection'
x[[index]]
x |
ee$FeatureCollection. |
index |
Integer. Index specifying elements to extract or replace. |
An ee$FeatureCollection
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.