Skip to content

Commit

Permalink
Fix previous "fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
vspinu committed Oct 1, 2015
1 parent 7eb54a0 commit e710ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/pretty.r
Expand Up @@ -107,8 +107,8 @@ pretty.point <- function(x, units, length, start = TRUE, ...){

} else {

floors <- list("sec", "min", "hour", "day", "month", "year")
floorto <- match(units, floors) + 1L
floors <- c("sec", "min", "hour", "day", "month", "year")
floorto <- floors[match(units, floors) + 1L]
lower <- floor_date(x, floorto)
upper <- ceiling_date(x, floorto)

Expand Down

0 comments on commit e710ce4

Please sign in to comment.