Math-methods: Mathematical functions

Math-methodsR Documentation

Mathematical functions

Description

Mathematical functions

Usage

## S3 method for class 'ee.image.Image'
Math(x, ...)

Arguments

x

ee$Image

...

Ignored

Generic mathematical functions that can be used with an ee$Image object as argument: abs, sign, sqrt, ceiling, cumprod, cumsum, log, log10, log1p, log2, acos, floor, asin, atan, exp, expm1, cos, cosh, sin, sinh, tan, and tanh.

Value

An ee$Image object

Examples

## Not run: 
library(rgee)
library(rgeeExtra)

ee_Initialize()

roi <- ee$Geometry$Point(c(-79, -12))

a <- ee$Image(1)
b <- ee$Image(2)
c <- a + b

log1p(ee$Image(10))


## End(Not run)

r-earthengine/rgeeExtra documentation built on Dec. 7, 2023, 9:03 p.m.