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.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to