check_angle_validity: Validity and compatibility of a cry object of class 'angle'

Description Usage Arguments Value Examples

View source: R/validations.R

Description

An object of class 'angle' is a numeric with logical attribute "rad_flag".

Usage

1

Arguments

x

Object of class angle.

message

A logical variable. If TRUE, the function prints a message on the errors, if any (default is FALSE, i.e. no message printed).

Value

ans A logical value. TRUE means that the input is a valid object of class 'angle'.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Create an object of class angle
x <- angle(80)

# Check its validity
check_angle_validity(x)

# Modify the 'rad_flag' attribute
attr(x,"rad_flag") <- 12.5

# Check its validity
check_angle_validity(x,TRUE)

cry documentation built on May 3, 2021, 9:06 a.m.