Skip to content

Instantly share code, notes, and snippets.

@tota
Created June 11, 2013 10:21
Show Gist options
  • Save tota/5755858 to your computer and use it in GitHub Desktop.
Save tota/5755858 to your computer and use it in GitHub Desktop.
patch to RFinanceYJ 0.2.0
--- 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