testlist <- list(ps = structure(c(NA, -Inf, -Inf, NA, -Inf, 1.55275352858005e+40 ), .Dim = c(1L, 6L))) result <- do.call(specklestar::speckle_acf,testlist) str(result)