Description Usage Arguments Value Author(s) See Also Examples

Given a (potentially very long) vector, the vector is partitioned into a given number of (up to rounding errors) equally long bins, and a vector summerizing each of the bins with one number it returned.

1 | ```
shrinkVector(vec, newLength, mode = c("max", "min", "absmax", "mean"))
``` |

`vec` |
The vector to be shrunk. May be an ordinary numeric or integer vector or an IRanges::Rle vector. |

`newLength` |
The desired size of the return vector, i.e., the number of partitions |

`mode` |
the summerization mode: 'max': take the maximal value of each bin; 'min': take the minimal value of each bin; 'absmax': take the value with largest absolute value; 'mean': take the mean of the bin values. |

A vector of length `newLength`

with the summary values of each of the bin
of `vector`

.

Simon Anders, EMBL-EBI (sanders\@fs.tum.de)

`plotLongVector`

,
`Rsamtools::pileup`

,
`HilbertVisGui::simpleLinPlot`

1 | ```
shrinkVector( 100000 + 1:1000, 17 )
``` |

HilbertVis documentation built on May 6, 2019, 2:15 a.m.

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.