R/propz.R

#' convert vector to proportions
#' 
#' \code{propz(x)}
#' 
#' @param x a vector of values
#' 
#' @details converts values in a vector to proportions of the whole
#' 
#' @examples
#' propz(1:3)

propz = function(x) x/sum(x)
helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.