[R] Function bug when sourcing
    Ernie Stokely 
    wizardchef at gmail.com
       
    Sat Dec 27 21:07:27 CET 2014
    
    
  
I am unable to figure out why I get this error in the code below:
Error in as.Date(data.dates.x, format = "%m/%d/%Y") :
   object 'data.dates.x' not found
Here is the code with comments deleted:
-----------------------------------------------------
ConvertExcelDateData <- function(ticker.prices, data.dates)
      data.dates.x <- as.vector(unlist(data.dates))
      data.dates.x <- as.Date(data.dates.x, format = "%m/%d/%y")
  return(match(data.dates.x,time(ticker.prices)))
--------------------------------------------------------
I'm sure it is something obvious, but I am blind to it. Help appreciated.
    
    
More information about the R-help
mailing list