Created
July 20, 2017 11:31
-
-
Save grayskripko/5901bacdd6876099f75bb332cb06020d to your computer and use it in GitHub Desktop.
Trim a list with NULLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list(a=1, b=if (F) 2) %>% Filter(function(x) !is.null(x), .) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment