R/normalize_vector.R

Defines functions normalize_vector

## File Name: normalize_vector.R
## File Version: 0.04

#*** normalize vector to sum of length x
normalize_vector <- function(x)
{
    x  <- length(x) * x / sum(x)
    return(x)
}

Try the miceadds package in your browser

Any scripts or data that you put into this service are public.

miceadds documentation built on Jan. 7, 2023, 1:09 a.m.