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
dmonth0 <- function(date) {
date <- as.Date(date, format = "%Y-%m-%d")
m <- format(date, format="%m")
while (format(date, format="%m") == m) {
date <- date + 1
}
return(as.integer(format(date - 1, format="%d")))
}
return(unlist(lapply(X = x, FUN = dmonth0)))
currently, dmonth is not vectorized.
The text was updated successfully, but these errors were encountered: