rdate_to_eedate: Pass an R date object to Earth Engine

Description Usage Arguments Value Examples

View source: R/ee_Date.R

Description

Pass an R date object ("Date", "Numeric", "character", "POSIXt", and "POSIXct") to Google Earth Engine (ee$Date).

Usage

1

Arguments

date

R date object

timestamp

Logical. If TRUE, return the date in milliseconds from the Unix Epoch (1970-01-01 00:00:00 UTC) otherwise return a EE date object. By default FALSE.

Value

rdate_to_eedate will return a numeric timestamp or an EE Date depending on the timestamp argument.

Examples

1
2
3
4
5
library(rgee)
ee_reattach()
ee_Initialize()
rdate_to_eedate('2000-01-01')
rdate_to_eedate(315532800000) # float number

ryali93/rgee documentation built on May 13, 2020, 4:34 a.m.