.slice {twoddpcr} | R Documentation |
Takes one long vector/factor and splits it into a list of vectors, where the lengths are given by a vector of sizes. This may be the same as another given list of vectors. Particularly useful if we want to combine a list of data, do some analysis on the combined data, then split the analysis.
.slice(vec, wellSizes, wellNames)
vec |
The vector to split. |
wellSizes |
A numeric vector corresponding to sizes of the wells. |
wellNames |
A character vector corresponding to the names of the wells. |
A list of vectors split into the given lengths.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk