deg2rad: Convert between degree and radian

Description Usage Arguments Value Author(s) Examples

View source: R/deg2rad.R

Description

Convert coordinates from degree to radian and vice versa.

Usage

1
deg2rad(x, inverse = FALSE)

Arguments

x

a numeric vector of coordinate values to be converted.

inverse

logical; convert from degree to radian (the default) or from radian to degree (inverse = TRUE).

Value

numeric vector of the same length as x with the converted coordinate values.

Author(s)

Thomas Münch

Examples

1
deg2rad(deg2rad(-75), inverse = TRUE)

EarthSystemDiagnostics/ecustools documentation built on Jan. 15, 2022, 5:22 p.m.