Learn R Programming

rgee (version 0.2.0)

rdate_to_eedate: Pass R date object to Earth Engine

Description

Function to pass objects of classes "Date", "character", "POSIXt", and "POSIXct" to ee$Date or unix time stamp.

Usage

rdate_to_eedate(date, eeobject = TRUE)

Arguments

date

R date object

eeobject

Logical. Whether TRUE, it will return a ee$object otherwise return the date in milliseconds.

Examples

Run this code
# NOT RUN {
library(rgee)
ee_reattach()
ee_Initialize()
rdate_to_eedate('2000-01-01')
# }

Run the code above in your browser using DataLab