Description Usage Arguments Details Value Author(s) See Also Examples

Internal function to prepare geographic distances for the combined analysis with genetic relatedness.

1 2 |

`pop1` |
Specific type of dataframe as in inputformat. Population one used for calculations. Individuals passed to rows of resulting matrix. Inputformat should be standard with x and y coordinate mode for |

`pop2` |
Specific type of dataframe as in inputformat. Population two used for calculations. Individuals passed to columns of resulting matrix. Inputformat should be standard with x and y coordinate mode for |

`onlypairs` |
If set as TRUE geographic distances is calculated only for diagonal comparisons in matrix. If set as FALSE lower triangel is calculated. |

`value` |
String defining method to calculate geographic distances. Can be set as "relative" or "decimal". |

Two different methods of distance calculations are implemented in `Demerelate`

. If using "relative", distances will be calculated from x-y coordinates using normal pythagoratic mathematics. When working with geographic positions value needs to be set to "decimal". x and y coordinates need to be given as geographic positions in decimal degrees (demereldist).

`matrix.share` |
Object containing geographic distances. |

Philipp Kraemer, <[email protected]>

```
Demerelate
allele.sharing
inputformat
```

1 2 3 4 | ```
## internal function not intended for direct use
``` |

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.