Skip to contents

Convert degrees to radians.

Usage

degs_to_rads(degree = NULL, lang = c("r", "h3"), simple = TRUE)

Arguments

degree

Numeric, value in degrees

lang

Character; whether to perform the conversion using base R or the H3 library. Defaults to R for speed.

simple

Logical; whether to return a vector or a data frame containing both inputs and outputs.

Value

Numeric, value in radians

Examples

degs_to_rads(120)
#> [1] 2.094395