Re: [R] Function bug when sourcing

2014-12-27 Thread peter dalgaard
A pair of braces: {} would seem required. -pd > On 27 Dec 2014, at 21:07 , Ernie Stokely wrote: > > 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

[R] Function bug when sourcing

2014-12-27 Thread Ernie Stokely
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,