Learn R Programming

mosaic (version 1.9.1)

deg2rad: Convert between degrees and radians

Description

Facilitates conversion between degrees and radians.

Usage

deg2rad(x)

rad2deg(x)

Value

a numeric vector

Arguments

x

a numeric vector

See Also

latlon2xyz(), googleMap(), and rgeo().

Examples

Run this code
deg2rad(180)
rad2deg(2*pi)

Run the code above in your browser using DataLab