Learn R Programming

remote (version 1.2.1)

deg2rad: Convert degrees to radians

Description

Convert degrees to radians

Usage

deg2rad(deg)

Arguments

deg
vector of degrees to be converted to radians

Examples

Run this code
data(vdendool)

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

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

Run the code above in your browser using DataLab