Converts slope values to angle values.
slope2angle(slope, angleUnit = c("deg", "rad"))
A vector of angle values in specified unit.
numeric vector of slope to be converted to angle.
the desired unit for the returned angle value. Either "deg"
or "rad"
. Default is "deg"
.
angle2slope
, the reciprocal of slope2angle
slope2angle(100)
slope2angle(17.6327)
slope2angle(angle2slope(30))
Run the code above in your browser using DataLab