Skip to contents

Convert degrees to radians

Usage

deg_2_rad(deg)

Arguments

deg

Degrees (a numeric of any length >= 1)

Value

The angle(s) in radians (as a numeric vector of the same length)

Author

Vikram B. Baliga

Examples

## One input
deg_2_rad(90)
#> [1] 1.570796

## Multiple inputs
deg_2_rad(c(5, 10, 15, 20))
#> [1] 0.08726646 0.17453293 0.26179939 0.34906585