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