View source: R/k.nearest.distr.R
Computes k-nearest neighbour values within a year
1 2 3 4 5 6 | k.nearest.distr(
da = data.frame(Id = buzzard_db$repro_fledge_db$Territory, Year =
buzzard_db$repro_fledge_db$Year, Lat = buzzard_db$repro_fledge_db$N, Lon =
buzzard_db$repro_fledge_db$E),
k = 1
)
|
k |
integer or integer vector denoting k.nearest neighbour to compute |
dat |
data frame with columns Id, Year, Lat & Lon |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.