R/one.arg.R

Defines functions one.arg

Documented in one.arg

#' @title One Argument
#' @description Does the function have just one argument?
#' 
#' @param f a function.
#' 
#' @author Eric Archer \email{eric.archer@@noaa.gov}
#' 
#' @examples
#' one.arg(mean)
#' one.arg(one.arg)
#' 
#' @export
#' 
one.arg <- function(f) length(formals(f)) == 1
EricArcher/swfscMisc documentation built on April 12, 2024, 4:21 a.m.