R/solar_pv_models.R
deg2rad.Rd
Convert degrees to radians
deg2rad(x) rad2deg(x)
numeric vector, radians
rad2deg(pi) #> [1] 180 deg2rad(180) #> [1] 3.141593 deg2rad(rad2deg(pi)) #> [1] 3.141593 cos(pi); cos(deg2rad(rad2deg(pi))) #> [1] -1 #> [1] -1