create.N.matrix {cooccur} | R Documentation |

## Function to create spp x spp matrix of potential co-occurring sites (N) from a potential spp x site matrix.

### Description

Returns a spp x spp matrix of potential co-occurring sites from spp x site matrix of possible species occupancy.

### Usage

```
create.N.matrix(mat)
```

### Arguments

`mat` |
spp x site matrix where 1 = potential occupancy and 0 = species does not occur. |

### Value

Returns a spp x spp matrix where the upper triangle contains N for each species pair.

### Author(s)

Daniel M Griffith

### See Also

### Examples

```
#data(finches)
#N_matrix <- matrix(data = rbinom(n = nrow(finches)*ncol(finches),1,prob = 0.75),
# nrow = nrow(finches),
# ncol = ncol(finches)
# ,byrow = T)
#create.N.matrix(N_matrix)
```

[Package

*cooccur*version 1.3 Index]