View Login.R
# This script is modified by Jason Bryer ( from Huidong Tian's
# original script. The blog post describing the method is here:
# The original R script is located here:
# This script adds two new features: 1. Render a logout button, and 2. provide
# the ability for visitors to create a new account.
# Within your server.R file, be sure to use:
View 2013-08-B.txt
From San Francisco to New York to Paris, city governments, high-class restaurants,
schools, and religious groups are ditching bottled water in favor of what comes out of the
faucet. With people no longer content to pay 1,000 times as much for bottled water, a
product no better than water from the tap, a backlash against bottled water is growing.
(5) The U.S. Conference of Mayors, which represents some 1,100 American cities,
discussed at its June 2007 meeting the irony of purchasing bottled water for city employees
and for city functions while at the same time touting1 the quality of municipal water. The
group passed a resolution sponsored by Mayors Gavin Newsom of San Francisco, Rocky
Anderson of Salt Lake City, and R. T. Rybak of Minneapolis that called for the examination
(10) of bottled water’s environmental impact. The resolution noted that with $43 billion a year
View GradsByGender.R
# Directory
ipedsHelp('HD', 2012)
View strtable.R
#' Creates a \code{data.frame} version of the str function for data.frames.
#' Note that this function only works with \code{data.frames}. The function
#' will throw an error for any other object types.
#' @param n the first n element to show
#' @param width maximum width in characters for the examples to show
#' @param n.levels the first n levels of a factor to show.
#' @param width.levels maximum width in characters for the number of levels to show.
#' @param factor.values function defining how factor examples should be printed.
View gitbook.R
#' Initializes a new Gitbook.
#' This will initalize a new Gitbook in the given directory. When done, it will
#' also change the working directory.
#' @author Jason Bryer <>
newGitbook <- function(dir) {
.Deprecated('This function has been moved to the gitbook R package. See for more information')
View package.R
#' Simplified loading and installing of packages
#' This is a wrapper to \code{\link{require}} and \code{\link{install.packages}}.
#' Specifically, this will first try to load the package(s) and if not found
#' it will install then load the packages. Additionally, if the
#' \code{update=TRUE} parameter is specified it will check the currently
#' installed package version with what is available on CRAN (or mirror) and
#' install the newer version.
#' @param pkgs a character vector with the names of the packages to load.
View setFunctionParams.R
#' Set function parameters for debugging.
#' Sets the defauls for the parameters in the given function witin an environment.
#' @param fun the function whose parameters should be set.
#' @param envir the environment to set those parameters.
#' @param missing.value value to assign to parameters that do not have a defautl value.
#' @param overwrite should parameters already defined be overwritten.
setFunctionParams <- function(fun,
View server.R
tickets <-
c( '$1', 1, 15),
View getYearQuarter.R
#' Returns the year (fiscal or calendar) and quarter in which the date appears.
#' This function will cut the given date vector into quarters (i.e. three month
#' increments) and return an ordered factor with levels defined to be the quarters
#' between the minimum and maximum dates in the given vector. The levels, by
#' default, will be formated as \code{FY2013-Q1}, however the \code{FY} and \code{Q}
#' can be changed using the \code{fy.prefix} and \code{quarter.prefix} parameters,
#' respectively.
#' @param x vector of type \code{\link{Date}}.
#' Convert a list of vectors to a data frame.
#' This function will convert a list of vectors to a data frame. This function
#' will handle three different types of lists of vectors. First, if all the elements
#' in the list are named vectors, the resulting data frame will have have a number
#' of columns equal to the number of unique names across all vectors. In cases
#' where some vectors do not have names in other vectors, those values will be
#' filled with \code{NA}.
#' The second case is when all the vectors are of the same length. In this case,