Description Usage Arguments Value See Also Examples

This function rotates the values in a matrix by a user-specified number of degrees. In almost all cases some values will fall outside the matrix so they will be discarded. Cells that have no rotated values will become `NA`

. Only scquare matrices can be accomodated. In some cases a rotation will cause cells to have no assigned value because no original values fall within them. In these instances the mean value of surrounding cells is assigned to the cells with missing values. If the angle of rotation is too small then no rotation will occur.

1 | ```
rotMatrix(x, rot)
``` |

`x` |
Object of class |

`rot` |
Numeric. Number of degrees to rotate matrix. Values represent difference in degrees between "north" (up) and the clockwise direction. |

A matrix.

[base::t()]

1 2 3 4 5 6 7 |

adamlilith/omnibus documentation built on Nov. 21, 2018, 11:01 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.