coord: coord - compute coordinates for a given index.

Description Usage Arguments Details Value Author(s) Examples

Description

Given an index k and a matrix mat, compute the coordinate pair (x,y) at which k is found in mat.

Usage

1
coord(k,mat)

Arguments

k

Integer value.

mat

Matrix.

Details

TODO

Value

Integer pair (x,y)

Author(s)

Christian Bender

Examples

1
2
3
4
5
6
7
## Not run: 
library(ddepn)
mat <- matrix(0, nrow=5,ncol=10)
k <- 14
coord(k,mat)

## End(Not run)

ddepn documentation built on May 2, 2019, 4:42 p.m.