Is there a concise way to select columns of certain type in dplyr
? For example, how to select all character columns within a dplyr
chain?
%>% is called the forward pipe operator in R. It provides a mechanism for chaining commands with a new forward-pipe operator, %>%. This operator will forward a value, or the result of an expression, into the next function call/expression. It is defined by the package magrittr (CRAN) and is heavily used by dplyr (CRAN).
Dplyr 0.5 has the select_if()
that allows you to write select_if(is.character)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With