typly | R Documentation |
Apply a function to columns in a data.frame
that inherit one of the specified types.
typly( data, f, types, negated = FALSE, ... )
data |
A |
f |
A |
types |
A |
negated |
Should the function be applied to columns that don't match any |
... |
Additional arguments to be passed to |
A list
Alex Zajichek
heart_disease %>% #Compute means on numeric or logical data typly( f = mean, types = c("numeric", "logical"), na.rm = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.