Convert degrees to radians

Share:

Description

Convert degrees to radians

Usage

1
deg2rad(deg)

Arguments

deg

vector of degrees to be converted to radians

Examples

1
2
3
4
5
6
7
8
9
data(vdendool)

## latitude in degrees
degrees <- coordinates(vdendool)[, 2]
head(degrees)

## latitude in radians
radians <- deg2rad(coordinates(vdendool)[, 2])
head(radians)