Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (11 sloc) 0.254 kB
#' Set defaults.
#'
#' Convient method for combining a list of values with their defaults.
#'
#' @param x list of values
#' @param y defaults
#' @keywords manip
#' @export
defaults <- function(x, y) {
c(x, y[setdiff(names(y), names(x))])
}
Jump to Line
Something went wrong with that request. Please try again.