This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(plyr) | |
library(stringr) | |
#' Convenient interface for computing statistics on a vector | |
#' @author Andrew Redd | |
#' | |
#' @param x the vector | |
#' @param ... statistics to compute, must take a vector and return a vector | |
#' @param .na.action the action to take on NA values, for all statistics | |
#' | |
#' @return A one row \code{data.frame} with columns named as in \code{...} |