%>% | R Documentation |
This is intended to help with apply statements, where one may want to pass a function that simply wraps one function in another
f %>% g
f |
the inner funtion |
g |
the outer function |
a |
new function that simply wraps the inner inside the outer function |
#an example matrix with some NA values in it
mat <- sample(c(NA,1:5),100,replace=TRUE)|>matrix(nrow=20)
#find all rows that don't have NA values in them
cleanRows <- apply(mat, 1, is.na %>% any %>% `!`)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.