# Get all diagonals vectors of a matrix.

### Description

This function extracts all diagonal vectors of a matrix and returns the result as a list.

### Usage

1 |

### Arguments

`data` |
Matrix from which to extract diagonal elements |

`direction` |
Which side to begin on? Takes values of one of "left", "right" or "both". Defaults to "right". |

### Examples

1 2 |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.