i2xy {hsfocushsvegatcdf} | R Documentation

## Convert (x,y)-coordinates to single-number indices and back.

### Description

Convert (x,y)-coordinates on the chip (and in the CEL file) to the single-number indices used in AffyBatch and CDF environment, and back.

### Usage

    i2xy(i)
    xy2i(x,y)

### Arguments

`x` | numeric. x-coordinate (from 1 to 448)
`y` | numeric. y-coordinate (from 1 to 448)
`i` | numeric. single-number index (from 1 to 200704)

### Details

Type `i2xy` and `xy2i` at the R prompt to view the function definitions.

### See Also

`hsfocushsvegatcdf`

### Examples

      xy2i(5,5)
      i     = 1:(448*448)
      coord = i2xy(i)
      j     = xy2i(coord[, "x"], coord[, "y"])
      stopifnot(all(i==j))
      range(coord[, "x"])
      range(coord[, "y"])

[Package hsfocushsvegatcdf version 10.0.0 Index]