powered by
This function prepares the data to compute correlation by introducing NA's when lags are needed
prep.data(data, lags, timepoints)
a matrix with rows representing genes and columns representing different timepoints
a vector of same length as the number of rows in the data column indicating the best lags
a vector of time points used in the dataset
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
# NOT RUN { prep.data(array(rnorm(20), c(5, 4)), c(0, 0, 0, -1, 1), timepoints = c(0, 5, 15, 30)) # }
Run the code above in your browser using DataLab