The function `v2m`

is used in the functions
`gdrisk`

, `gdinteract`

and `gdeco`

for converting
a vector is from the results of the risk detector result,
interaction detector result or ecological detector to a lower
triangular matrix.

1 |

`vec` |
A data.frame of risk/interaction/ecological detector result of a strata variable |

`diag` |
TRUE/FALSE, indicating if the output matrix is a diagonal matrix. |

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.