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 May 29, 2024, 11:05 a.m.