Learn R Programming

pathviewr (version 1.1.8)

deg_2_rad: Convert degrees to radians

Description

Convert degrees to radians

Usage

deg_2_rad(deg)

Value

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

Arguments

deg

Degrees (a numeric of any length >= 1)

Author

Vikram B. Baliga

See Also

Other mathematical functions: calc_min_dist_v(), find_curve_elbow(), get_2d_angle(), get_3d_angle(), get_3d_cross_prod(), get_dist_point_line(), get_traj_velocities(), get_velocity(), rad_2_deg()

Examples

Run this code
## One input
deg_2_rad(90)

## Multiple inputs
deg_2_rad(c(5, 10, 15, 20))

Run the code above in your browser using DataLab