as_angle | R Documentation |
as_angle()
casts to an angle()
vector
as_angle(x, unit = getOption("affiner_angular_unit", "degrees"), ...)
## S3 method for class 'angle'
as_angle(x, unit = getOption("affiner_angular_unit", "degrees"), ...)
## S3 method for class 'character'
as_angle(x, unit = getOption("affiner_angular_unit", "degrees"), ...)
## S3 method for class 'complex'
as_angle(x, unit = getOption("affiner_angular_unit", "degrees"), ...)
## S3 method for class 'Coord2D'
as_angle(x, unit = getOption("affiner_angular_unit", "degrees"), ...)
## S3 method for class 'Coord3D'
as_angle(
x,
unit = getOption("affiner_angular_unit", "degrees"),
type = c("azimuth", "inclination"),
...
)
## S3 method for class 'Line2D'
as_angle(x, unit = getOption("affiner_angular_unit", "degrees"), ...)
## S3 method for class 'Plane3D'
as_angle(
x,
unit = getOption("affiner_angular_unit", "degrees"),
type = c("azimuth", "inclination"),
...
)
## S3 method for class 'numeric'
as_angle(x, unit = getOption("affiner_angular_unit", "degrees"), ...)
x |
An R object to convert to a |
unit |
A string of the desired angular unit. Supports the following strings
(note we ignore any punctuation and space characters as well as any trailing
|
... |
Further arguments passed to or from other methods |
type |
Use "azimuth" to calculate the azimuthal angle and "inclination" to calculate the inclination angle aka polar angle. |
An angle()
vector
as_angle(angle(pi, "radians"), "pi-radians")
as_angle(complex(real = 0, imaginary = 1), "degrees")
as_angle(as_coord2d(x = 0, y = 1), "turns")
as_angle(200, "gradians")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.