is_value: Returns a logical vector whether input

View source: R/is_value.R

is_valueR Documentation

Returns a logical vector whether input

Description

is_value is a helper function for model_gamm, calc_deriv, test_interaction, and scoring. It checks whether each element is a true value and not NA, NaN, NULL or Inf when filtering tibbles for specific values. If the filtering variable (e.g. p_val or edf) contains NAs, the respective rows are usually not excluded in the requested subset or (when using the function split) excluded in both TRUE/FALSE subsets.

Usage

is_value(x)

Arguments

x

An R object, which should be a numeric vector.

Value

The function returns a logical vector with TRUE or FALSE for each element of x.


saskiaotto/INDperform documentation built on Feb. 22, 2025, 3:15 a.m.