dot-slice: Splits a long vector and according to a vector of sizes.

Description Usage Arguments Value Author(s)

Description

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.

Usage

1
.slice(vec, wellSizes, wellNames)

Arguments

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.

Value

A list of vectors split into the given lengths.

Author(s)

Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk


twoddpcr documentation built on Nov. 8, 2020, 5:49 p.m.