NA and Inf values in the y has been ignored automatically.
smooth_wSG(y, halfwin = 1L, d = 1L, w = NULL)
smooth_SG(y, halfwin = 1L, d = 1L)
colvec
halfwin of Savitzky-Golay
polynomial of degree. When d = 1, it becomes moving average.
colvec of weight