View source: R/functions_for_RGWAS.R

is.diag | R Documentation |

Function to judge the square matrix whether it is diagonal matrix or not

```
is.diag(x)
```

`x` |
Square matrix. |

If 'x' is diagonal matrix, 'TRUE'. Otherwise the function returns 'FALSE'.

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.