Created
June 11, 2013 10:21
-
-
Save tota/5755858 to your computer and use it in GitHub Desktop.
patch to RFinanceYJ 0.2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- R/quoteStockTsData.R.orig 2013-06-08 14:23:35.000000000 +0900 | |
+++ R/quoteStockTsData.R 2013-06-11 19:17:29.000000000 +0900 | |
@@ -99,7 +99,6 @@ | |
#convert string formart date to POSIXct object | |
convertToDate <- function(date.string,time.interval) | |
{ | |
- date.string <- iconv(date.string,"EUC-JP","UTF-8","") | |
#data format is different between monthly and dialy or weekly | |
if(any(time.interval==c('d','w'))){ | |
result <- gsub("^([0-9]{4})([^0-9]+)([0-9]{1,2})([^0-9]+)([0-9]{1,2})([^0-9]+)","\\1-\\3-\\5",date.string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment