VectorToBin {GraphAlignment} | R Documentation |

## Convert vector to bin representation

### Description

Convert a vector of real numbers to a vector of integer bin numbers
according to the specified lookup vector.

### Usage

VectorToBin(v, lookup, clamp=TRUE)

### Arguments

`v` |
input vector |

`lookup` |
lookup vector |

`clamp` |
clamp values to lookup range |

### Details

The return value is a vector containing the bin numbers for the elements of the input vector.

### Examples

x <- rnorm(10)
lookup <- 0.2*(-5:5)
VectorToBin(x, lookup)

[Package

*GraphAlignment* version 1.0-0

Index]