Skip to content

treating missing values in timeSeries package

2 messages · Upananda Pani, David Winsemius

#
Dear All,

I am getting the following error when i am using interpNA function from
timeSeries package

# Missing Value Treatment (Linear Interpolation)
Error in interpNA(spt, method = c("linear")) : spt is not a tis object
Error in interpNA(fut, method = c("linear")) : fut is not a tis object
Would you please help me in this regard.

With sincere regards,
Upananda
1 day later
#
On Nov 1, 2014, at 2:58 AM, Upananda Pani wrote:

            
It puzzles me why you have not investigated an error message that seems quite informative. When I looked at the code of timeSeries::interpNA I was puzzled that the package seems to use "timeSeries" as the class name. This error reports a different class name, but it does seem that the function is designed to take only a particular set of intputs and yours fails that test.
So the lack of an error here suggests that a ts-object might be acceptable to the same function that you were asking about.