deg2rad: Convert Degrees to Radians and Vice Versa

Description Usage Arguments Creation notes

View source: R/circleUnitConvert.R

Description

Base R doesn't have a native function to change degrees to but requires radians for trig functions. These are to help handle that.

Usage

1
2
3
deg2rad(deg)

rad2deg(rad)

Arguments

deg

Input degree you want to change to radians.

rad

Input radian you want to change to degrees.

Creation notes

First created in 2019-Feb in FIAspatialAdditions.R for my BigDataFNR class presentation on working with spatial data in R in my purdueResearch repo.


jacpete/jpfxns2 documentation built on Nov. 22, 2019, 3:33 a.m.