R/normalise.R

Defines functions normalise

normalise <-
function(M){

c = sum(M)
# Set any zeros to one before dividing
d = c + (c==0);
M = M / d;
return(M)
}

Try the NHMSAR package in your browser

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

NHMSAR documentation built on Feb. 9, 2022, 9:06 a.m.