diff_degrees: Angular difference in degrees

diff_degreesR Documentation

Angular difference in degrees

Description

Angular difference in degrees

Usage

diff_degrees(degree1, degree2 = NULL, ...)

Arguments

degree1

numeric vector that contains angles in degrees.

degree2

numeric vector that contains angles in degrees, or NULL when the input should only consider degree1.

...

additional arguments are ignored.

Details

This function simply returns the difference between two angles in degrees. When degree1 and degree2 are vectors, this function operates on the full set in one step.

When degree1 is a vector, and degree2 is NULL, this function calculates the difference of each pair in degree1, in the order supplied.

See Also

Other venndir spatial: degrees_to_adj(), display_angles(), mean_degree_arc(), mean_degrees(), rescale_coordinates(), spread_degrees()

Examples

diff_degrees(5, 355)
diff_degrees(355, 5)
diff_degrees(-10, 5)
diff_degrees(-10, 355)
diff_degrees(180, 361)


jmw86069/venndir documentation built on Dec. 14, 2024, 2:36 p.m.