deg2rad: Convert degrees to radians

Description Usage Arguments Examples

View source: R/deg2rad.R

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)

remote documentation built on May 29, 2017, 2:54 p.m.

Search within the remote package
Search all R packages, documentation and source code