Collection of utility and convenience functions.

as.data.frame.by | Convert the results of by() to a data.frame. |

as.matrix.by | Coerces a by object into a matrix (only tested on a 2d... |

autoplot.microbenchmark | Autoplot method for microbenchmark objects: Prettier graphs... |

between | Classify values into groups based on which numbers they're... |

bytable | Produces a nice summary table by groupings |

categorize | Categorize a vector based on a data.frame with two columns,... |

compareplot | Bar plot divided by three groupings |

daysofweek | Return a vector of the days of the week, in order |

destring | Convert character vector to numeric, ignoring irrelevant... |

distinct | Returns number of distinct observations in each column of a... |

evens | Shortcut functions to return the odd and even values from a... |

expandDF | Functions to manipulate data frames |

fpart | Obtain the fractional part of a numeric |

hist_horiz | Kludgy horizontal histogram function (really should just fix... |

homogenous | Returns whether a vector is homogenous or not |

japply | japply: Judiciously sapply to only selected columns |

last | Convenience functions to return the last/first element of a... |

latex.table.by | Exports a latex table with the first N columns being multirow... |

merge.list | Method to merge two lists Matches names of each list element... |

middle.group | Return a vector containing the locations of the middle of... |

munch | Recursively delete entries containing 'what' before entry... |

panelfxns | Various panel functions |

readdir | Loads all readable files in a directory into a list, with... |

remove.factors | Converts all factors in a data.frame to character. |

rep_along | Repeat a vector until it matches the length of another vector |

reshapeasy | reshapeasy: Easier reshaping from "wide" to "long" and back... |

rounding | Rounds a numeric vector to arbitrary values (not just decimal... |

searchPattern | Create a vector that starts with a given number and widens... |

shift | Shifts a vector's elements left or right by N elements. |

sort.data.frame | Sort a data.frame |

splitc | Split data over columns |

stack.list | Stack lists of data.frames |

title.page.new | Plot a title page containing the given text. Good for... |

trues | Return vector of equal length containing all TRUEs |

write.sanitized.csv | Outputs a sanitized CSV file for fussy input systems e.g.... |

xtablelm | Produces the output of an lm object as it appears in the R... |

xtable.lme | Add in methods to handle LME objects in xtable |

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.