Description Usage Arguments Value Author(s) Examples

Bin a vector based on intervals or groups.

1 | ```
binvec(x, u, v, method = "sum")
``` |

`x` |
A numeric vector. |

`u, v` |
The (inclusive) lower and upper indices of the bins, or a factor providing the groupings. |

`method` |
The method used to bin the values. This is efficiently implemented for "sum", "mean", "min" or "max". Providing a function will use a less-efficient fallback. |

An vector of the summarized (binned) values.

Kylie A. Bemis

1 2 3 4 5 6 7 8 9 10 11 |

```
Loading required package: BiocParallel
Loading required package: Matrix
Loading required package: biglm
Loading required package: DBI
Attaching package: ‘matter’
The following object is masked from ‘package:biglm’:
biglm
The following objects are masked from ‘package:base’:
apply, scale
[1] 0.4640751 0.6389526 0.4446999 0.6729408
[1] 0.4640751 0.6389526 0.4446999 0.6729408
[1] 0.4640751 0.6389526 0.4446999 0.6729408
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.