Learn R Programming

amt (version 0.2.2.0)

convert_angles: Converts angles to radians

Description

Converts angles to radians

Usage

as_rad(x)

as_degree(x)

Value

A numeric vector with the converted angles.

Arguments

x

[numeric]
Angles in degrees or rad.

Examples

Run this code
as_rad(seq(-180, 180, 30))

# The default unit of turning angles is rad.
data(deer)
deer |> steps() |> mutate(ta_ = as_degree(ta_))

Run the code above in your browser using DataLab