.slice {twoddpcr} | R Documentation

## Splits a long vector and according to a vector of sizes.

### 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

    .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

[Package twoddpcr version 1.16.0 Index]