dot-as_num1: Coerce to numeric and return first element

.as_num1R Documentation

Coerce to numeric and return first element

Description

Helper to safely coerce an object to numeric and return the first element, or NA_real_ if empty. Used internally when parsing RTransferEntropy-style output tables.

Usage

.as_num1(z)

Arguments

z

An object to be coerced to numeric.

Value

A numeric scalar (first element of as.numeric(z)) or NA_real_ if conversion fails or the result is empty.


bivarhr documentation built on July 7, 2026, 1:06 a.m.