You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function examples (both for daily and monthly data) start with matrices, then convert to data.frame or tibble. I think most people are much more familiar with data.frames or tibbles than matrices nowadays. So I'd revise examples, i.e. starting examples with:
coords<-data.frame(lon=-5.36, lat=37.40)
rather than starting with
coords<-matrix(c(-5.36, 37.40), ncol=2)
and then converting to data.frame, which requires naming columns afterwards.
coords<- as.data.frame(coords)
names(coords) <- c("lon", "lat") # must have these columns
We already made a similar change in the README a while ago
The text was updated successfully, but these errors were encountered:
Function examples (both for daily and monthly data) start with matrices, then convert to data.frame or tibble. I think most people are much more familiar with data.frames or tibbles than matrices nowadays. So I'd revise examples, i.e. starting examples with:
rather than starting with
and then converting to data.frame, which requires naming columns afterwards.
We already made a similar change in the README a while ago
The text was updated successfully, but these errors were encountered: