angle: Constructor for an S3 object of class "angle"

View source: R/angle_S3.R

angleR Documentation

Constructor for an S3 object of class "angle"

Description

Constructor for an S3 object of class "angle"

Usage

angle(ang, rad_flag = TRUE)

Arguments

ang

A real number, in degrees or radians depending on rad_flag.

rad_flag

A logical flag. If FALSE, the value is meant to be in radians.

Value

An object of class "angle" whose numerical value is always in degrees.

Examples

# Create an angle of 60 degrees
ang1 <- angle(60)
class(ang1)

jfoadi/cry documentation built on Feb. 3, 2024, 11:48 p.m.