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)
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.