index2xy | R Documentation |
locate_ndl_in_hay()
.Convert array index into xy location in matrix.
Helper function for locate_ndl_in_hay()
.
index2xy(index, nrow)
index , nrow |
A numeric. |
A numeric pair of xy location.
nrow <- 4
matrix(1:12, nrow = nrow)
purrr::map(1:12, index2xy, nrow = nrow)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.