Learn R Programming

cry (version 0.5.2)

print.angle: Print method for an object of class "angle".

Description

The value is displayed in degrees

Usage

# S3 method for angle
print(x, ...)

Value

Nothing. A message is displayed which includes information on the angle.

Arguments

x

An object of class "angle".

...

Additional arguments passed to the print methods

Examples

Run this code
# Create an angle of 90 degrees using radians
ang1 <- angle(pi/2,FALSE)

# Display its value
print(ang1)

Run the code above in your browser using DataLab