Learn R Programming

rgee (version 0.2.0)

eedate_to_rdate: Pass Earth Engine date object to R

Description

Function to pass objects of class ee$Date to as.POSIXct or numeric (unix time stamp)

Usage

eedate_to_rdate(ee_date, js = FALSE)

Arguments

ee_date

EE date object (ee$Date)

js

Logical. Whether TRUE, it will return a numeric date otherwise return the date as a POSIXct object.

Examples

Run this code
# NOT RUN {
library(rgee)
ee_reattach()
ee_Initialize()
eeDate <- ee$Date$fromYMD(1980,1,1)
eedate_to_rdate(eeDate)
# }

Run the code above in your browser using DataLab