Skip to content

Commit

Permalink
minor fix in events2station
Browse files Browse the repository at this point in the history
  • Loading branch information
kajsamp committed Sep 25, 2024
1 parent 41c3bde commit ad7a92e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/events2station.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ events2station <- function(x,param="count",FUN="mean",verbose=FALSE,
N <- as.station(N)
attr(N,"lat") <- attr(x,"lat")
attr(N,"lon") <- attr(x,"lon")
N <- subset(N, it=paste(range(format(dates,format="%Y-%m")),"01",sep="-"))
index(N) <- as.Date(strptime(index(N), format="%Y-%m-%d"))
N <- subset(N, it=paste(range(format(dates, format="%Y-%m")),"01",sep="-"))
} else {
print(paste("input error: param =",param))
}
Expand Down

0 comments on commit ad7a92e

Please sign in to comment.