prep.data {LPWC} | R Documentation |
Preparing Data
Description
This function prepares the data to compute correlation by introducing NA's when lags are needed
Usage
prep.data(data, lags, timepoints)
Arguments
data |
a matrix or data frame with rows representing genes and columns
representing different timepoints. If data is a data frame, the gene names
can be specified using the |
lags |
a vector of same length as the number of rows in the data column indicating the best lags |
timepoints |
a vector of time points used in the dataset |
Value
a list of two matrices, one matrix with NA's for the lags for the dataset and another matrix with the timepoints used for each row in the dataset
Author(s)
Thevaa Chandereng, Anthony Gitter
Examples
prep.data(array(rnorm(20), c(5, 4)), c(0, 0, 0, -1, 1),
timepoints = c(0, 5, 15, 30))
prep.data(array(runif(100, 0, 10), c(10, 10)), sample((-2:2), size = 10, replace = TRUE),
timepoints = c(0, 5, 15, 30, 45, 60, 75, 80, 100, 120))
[Package LPWC version 1.0.0 Index]