powered by
normalize(p, include.indices = NA)
x <- c(1:5) normalize(x, c(1,1,1,0,0))
Run the code above in your browser using DataLab