Make R functions more fun

chunk | Chunk a list into multiple lists of a specific length. |

compact | Remove all NAs and NULLs from a list. |

dec | Decrement a number by one. |

div | Determine if a dividend is evenly divisible by a divisor. |

fandcompose | Compose two binary functions using and. |

filter | Return only the values of a list that meet a certain... |

filtermap | Filter a list to certain elements, apply a function to those... |

find | Returns the first value of a list that meets a predicate. |

flatmap | Apply a map and then flatten the result. |

flatten | Take a list of lists and return a list. |

fn | A shorthand for writing out R functions. |

forcompose | Compose two binary functions using or. |

grapes-a-grapes | In-place assignment, allowing for multiple values. |

grapes-colon-greater-than-grapes | Infix operator for filter. |

grapes-colon-slash-greater-than-grapes | Infix operator for filtermap |

grapes-equals-equals-grapes | Determine whether two objects are identical. |

grapes-equals-grapes | In-place subtraction. |

grapes-f-slash-greater-than-grapes | Infix operator for flatmap. |

grapes-_-greater-than-grapes | Infix operator for reduce. |

grapes-less-than-grapes | Infix operator for appending to a list. |

grapes-less-than-less-than-grapes | Infix operator for in-place appending to list. |

grapes-or-grapes | Compose on NA, NULL, or lenth-0 (empty) values. |

grapes-plus-equals-grapes | In-place addition |

grapes-slash-equals-grapes | In-place division. |

grapes-_-slash-greater-than-grapes | Infix operator for reducemap. |

grapes-slash-greater-than-grapes | Infix operator for map. |

grapes-slash-slash-greater-than-grapes | Infix operator for innermap. |

grapes-slash-slash-slash-greater-than-grapes | Infix operator for innerinnermap. |

grapes-times-equals-grapes | In-place multiplication |

grapes-v-greater-than-grapes | Infix operator for unlisting a list prior to applying a... |

grepv | Find all the matches of a pattern within a string. |

inc | Increment a number by one. |

innerinnermap | Iterate a function over each subsublist in a list of list of... |

innermap | Iterate a function over each sublist in a list of lists. |

is_even | Determine whether a number is even. |

is_false | Determine whether an object is FALSE. |

is_lower | Determine whether a character is lowercase. |

is_odd | Determine whether a number is odd. |

is_true | Determine whether an object is TRUE. |

is_upper | Determine whether a character is uppercase. |

join | Join a list of strings together into one string. |

lsplit | Split a string into a list by letters. |

lzip | Zip two lists together into a list of lists containing each... |

map | Iterate a function over a list. |

merge.list | Merge two lists together. |

named | Determine whether a list is named. |

nfilter | Return only the values of a list where the names of that list... |

nmap | Iterate a function over the names of a list. |

partition | Paritition a list into two lists based on the reuslts of a... |

position | Returns the position of the first value of a list that meets... |

reduce | Recursively recombine values of a list. |

reducemap | Reduce each sublist in a list of lists. |

sort_keys | Sort a list by the names of that list. |

symdiff | Symmetric difference Find all the elements that are not in... |

thread | Thread a function through a list, iterating on an element and... |

thread2 | Thread a function through a list, iterating on an element and... |

thread_while | Continue appending to a list while the functional is true,... |

unnamed | Determine whether a list is unnamed. |

unnest | Turn a list of lists into a list. |

vmap | Iterate a function over the values of a list. |

vzip | Zip two lists together into tuple vectors. |

wsplit | Split a string into a list by words. |

zip_with | Zip two lists together by a specific function. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.