Displaying 2 results from an estimated 2 matches for "interpna".
Did you mean:
interna
2017 Sep 22
1
Treating NA in timeSeries package
Dear All,
I am facing problem with NA treatment in my financial time series data.
# data reading
aluminum = read.csv(file="alu.csv", header=T, sep=",")
fut = aluminum [,2]
spt = aluminum [,3]
# Missing Value Treatment (Linear Interpolation)
spt = interpNA(spt, method = c("linear"))
fut = interpNA(fut, method = c("linear"))
fut=fut[,1]
spt =spt[,1]
spt = interpNA(spt, method = c("linear"))
Error in interpNA(spt, method = c("linear")) : spt is not a tis object
> fut = interpNA(fut, method = c("linear&...
2010 May 12
2
Help with interpolation
Hi,
I have a two Colum matrix ( I named it holder) as shown bellow. It seems
to be three columns, but the first column contains the row names.
I am trying to fill all NAs by linear interpolation the known values in
the matrix. I tried using the interpNA function, but I get an error
message:
> interpNA(holder, method = "linear")
Error in approx(idx, x[idx], 1:n, method = method, f = f) :
need at least two non-NA values to interpolate
In addition: Warning message:
In xy.coords(x, y) : NAs introduced by coercion
>
I was wonderi...