splnr_replace_NAs()
allows you to replace NA values in your data with the value of the nearest neighbor.
The nearest neighbor is determined using st_nearest_feature()
from the sf
package.
Examples
df <- dat_species_prob %>%
splnr_replace_NAs("Spp2")