data_x <- data.frame(
scientificName = "Mexacanthina lugubris",
decimalLongitude = c(-117, -117.8, -116.9),
decimalLatitude = c(32.9, 33.5, 31.9),
BO_sstmean = c(12, NA, 14),
BO_sstmin = c(9, NA, 10),
BO_sstmax = c(14, NA, 18)
)
radius_km <- 10
iter <- 3
data_x <- ec_impute_env_values(data_x,
latitude = "decimalLatitude",
longitude = "decimalLongitude",
radius_km, iter
)
Run the code above in your browser using DataLab