Returns a matrix of logicals the same size of a given matrix with
entries `TRUE`

in the lower or upper triangle.

1 2 |

`x` |
a matrix or other |

`diag` |
logical. Should the diagonal be included? |

`diag`

, `matrix`

; further `row`

and `col`

on which `lower.tri()`

and
`upper.tri()`

are built.

1 2 3 4 |

What can we improve?

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.

Close