assign values by weight
weight_assign(x, w, list = FALSE)
x
A numeric value
w
A weight vector
list
(optional) Return list or not. if list is TRUE, return a list, otherwise return a vector. Default is FALSE.
TRUE
FALSE
A numeric Vector.
weight_assign(0.875,1:3)