.domain | R Documentation |
Computes the length of the domain of a curve by checking the presence of non-NA values in the specified matrix. The function returns a logical vector indicating which rows contain at least one non-NA element, allowing for an evaluation of the effective length of the domain.
.domain(v, use0)
v |
A list containing two elements:
Each matrix should have |
use0 |
A logical value indicating which element of
|
The function evaluates each row of the specified matrix (either v[[1]]
or v[[2]]
) to determine if there is at least one non-NA entry. This is particularly useful for assessing the effective domain of curves where some values may be missing.
A logical vector where each element is TRUE
if at least one element in the corresponding row of the selected matrix (either v[[1]]
or v[[2]]
) is not NA, and FALSE
otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.