View source: R/retrieve_good_data.R
retrieve_good_data | R Documentation |
This function retrieves the indices of non-missing data values at a specific time point from an individual array.
retrieve_good_data(individual_array, t, n_replicates)
individual_array |
A data matrix or data frame representing individual data, where rows correspond to time points and columns correspond to replicates and variables. |
t |
The time point for which you want to retrieve non-missing data indices. |
n_replicates |
The number of replicates in the data matrix. |
A numeric vector containing the indices of non-missing data values
at the specified time point t
. If there are no non-missing values or
only one non-missing value, NULL
is returned.
which
function for finding the indices of non-missing values.
# Example usage:
individual_data <- matrix(c(NA, 2, NA, 4, 5, NA), nrow = 1)
retrieve_good_data(individual_data, t = 1, n_replicates = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.