filter - r error: Complex matrix? -
i'm trying smooth data using savitzky-golay filter, keep getting error in r-studio:
error in la.svd(x, nu, nv) : 'a' must complex matrix
even when running example code:
library(pracma) ts <- sin(2*pi*(1:1000)/200) t1 <- ts + rnorm(1000)/10 t2 <- savgol(t1, 51)
or:
library(signal) bf <- butter(5,1/3) x <- c(rep(0,15), rep(10, 10), rep(0, 15)) sg <- sgolayfilt(x)
the error doesn't appear when run same thing in r. might problem?
i encountered same error , upgraded r-studio 0.98 0.99 , fixed "error in la.svd(x, nu, nv) : 'a' must complex matrix" problem.
Comments
Post a Comment