deg2rad | R Documentation |
Convert degrees to radians
deg2rad(deg)
deg |
vector of degrees to be converted to radians |
data(vdendool)
## latitude in degrees
degrees <- coordinates(vdendool)[, 2]
head(degrees)
## latitude in radians
radians <- deg2rad(coordinates(vdendool)[, 2])
head(radians)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.