Description Usage Arguments Value Examples

Determine the distance to nearest competitor within given timeframe

1 | ```
nearest_comp(x, fd, td = 0.5, ncpu = 84)
``` |

`x` |
data.frame to calculate distance to |

`fd` |
entire dataset that includes animals to calculate distance to |

`td` |
difference in time to look for animals, in hours |

`ncpu` |
number of cpus to use for calculations |

SSF Model ready data with distance to nearest competitor

1 | ```
system.time({ od<-lapply(dd,nearest_comp, fd=df, td=0.5, ncpu=84) })
``` |

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.