Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing typos

  • Loading branch information...
commit 8c56c2d4c4060859ee24796be64438030e17f4d3 1 parent 64d85b3
@garrettgman garrettgman authored
View
BIN  .DS_Store
Binary file not shown
View
1  .gitignore
@@ -9,3 +9,4 @@
.Rproj.user
*.Rproj
*.Rbuildignore
+*.DS_Store
View
3  R/guess.r
@@ -113,8 +113,7 @@
##'
guess_formats <- function(x, orders, locale = Sys.getlocale("LC_TIME"),
preproc_wday = TRUE, print_matches = FALSE){
- ## get all the formats which suite ORDERS
-
+ ## get all the formats which suit ORDERS
orders <- gsub("hms", "HMS", orders, ignore.case = TRUE)
orders <- gsub("hm", "HM", orders, ignore.case = TRUE)
orders <- gsub("ms", "MS", orders, ignore.case = TRUE)
View
2  R/parse.r
@@ -206,7 +206,7 @@ ydm_h <- function(..., quiet = FALSE, tz = "UTC", locale = Sys.getlocale("LC_TIM
.parse_xxx_hms(..., orders = "ydmR", quiet = quiet, tz = tz, locale = locale, truncated = truncated)
-ymdThms <- function(..., quiet = FALSE, tz = "UTC", locale = Sys.getlocale("LC_TIME"), truncated = 0){
+ymdThms <- function(..., quiet = FALSE, tz = "UTC", locale = Sys.getlocale("LC_TIME"), truncated = 0){
dates <- unlist(list(...), use.names= FALSE)
as.POSIXct(parse_date_time(dates, stop(), tz = tz, locale = locale, truncated = truncated, quiet = quiet))
}
Please sign in to comment.
Something went wrong with that request. Please try again.