Compact() takes a vector .x and returns it with all NULL and
NA values filtered out.
Vector .x but with all NULL and NA values filtered out.
# Removes all null elements from a vector:
a <- list(NULL, 1, 5, NULL)
b <- c(1, 2, 0, 4, NULL, 1, 3, NULL)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.