I am trying to retrieve climate data for a specific station_ID on a specific date. My dataset contains both elements.
for(i in data$date){lapply(data$station_id[i],
ghcnd_search,
var = "PRCP",
date_min = data$date[i],
date_max = data$date[i])}
I tried this but to no avail. I would be grateful if someone can help me out.
We can loop over the sequence of rows and then use that index to subset the values of 'date' and 'station_id'
-output
or using
Mapdata