names(x) <- value | R Documentation |
Set the names of the layers of an Earth Engine Image object.
`names(x) <- value`
x |
an EE Image object. |
value |
a character vector with the same length as x. |
An ee$Image with its bands renamed.
## Not run:
library(rgee)
library(rgeeExtra)
ee_Initialize()
extra_Initialize()
img_demo <- ee$Image("COPERNICUS/S2_SR/20190310T105851_20190310T110327_T30TVK")[[1:3]]
names(img_demo) <- c("B01", "B02", "B03")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.