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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -