powered by
Internal soundgen function
intplNA(x, idx_na = NULL)
numeric vector
which(is.na(x))
Returns the same numeric vector with NAs filled in by interpolation.
Takes a numeric vector and fills in the NAs by linear interpolation in the middle and constant interpolation at the ends.
# NOT RUN { soundgen:::intplNA(c(NA, 405, 441, 460, NA, NA, NA, 480, 490, NA, NA)) # }
Run the code above in your browser using DataLab