Learn R Programming

profrep (version 1.0.0)

retrieve_good_data: Retrieve Indices of Non-Missing Data for a Specific Time Point

Description

This function retrieves the indices of non-missing data values at a specific time point from an individual array.

Usage

retrieve_good_data(individual_array, t, n_replicates)

Value

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.

Arguments

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.

See Also

which function for finding the indices of non-missing values.

Examples

Run this code
# Example usage:
individual_data <- matrix(c(NA, 2, NA, 4, 5, NA), nrow = 1)
retrieve_good_data(individual_data, t = 1, n_replicates = 3)

Run the code above in your browser using DataLab