is_degree: Tests whether the given argument is a numeric value from the...

View source: R/is_degree.R

is_degreeR Documentation

Tests whether the given argument is a numeric value from the interval [0,1]

Description

Tests whether the given argument is a numeric value from the interval [0,1]

Usage

is_degree(x, na_rm = FALSE)

Arguments

x

the value to be tested

na_rm

whether to ignore NA values

Value

TRUE if x is a numeric vector, matrix or array with values between 0 and 1, otherwise, FALSE is returned. If na_rm is TRUE, NA values are treated as valid values. If na_rm is FALSE and x contains NA values, FALSE is returned.

Author(s)

Michal Burda


nuggets documentation built on April 3, 2025, 8:07 p.m.