deg2rad | R Documentation |
Transforms between angles in degrees and radians.
deg2rad(deg)
rad2deg(rad)
deg |
(array of) angles in degrees. |
rad |
(array of) angles in radians. |
This is a simple calculation back and forth. Note that angles greater than 360 degrees are allowed and will be returned. This may appear incorrect but follows a corresponding discussion on Matlab Central.
The angle in degrees or radians.
deg2rad(c(0, 10, 20, 30, 40, 50, 60, 70, 80, 90))
rad2deg(seq(-pi/2, pi/2, length = 19))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.