I've just learned about pluck() and chuck() in the purrr package. Very
cool!  As I understand it, they both will return one element of a list,
either by name or by [[]] index, or even "first"  or "last"

I was hoping to find a way to return all *but* one specified element of
a list. Speaking loosely, pluck(-1) or pluck(!1) or !pluck(1), but none
of those of course work. Thinking of English language, I had hopes for
chuck(1) as in "chuck element 1 away, leaving the rest"  but that's now
how it works.

Any tidyverse-centric ways to return all except one specified element of
a list?

Thanks.

--Chris Ryan

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to