weight_assign {gdverse} | R Documentation |
assign values by weight
Description
assign values by weight
Usage
weight_assign(x, w, list = FALSE)
Arguments
x |
A numeric value |
w |
A weight vector |
list |
(optional) Return list or not. if |
Value
A numeric Vector.
Examples
weight_assign(0.875,1:3)
[Package gdverse version 1.3-3 Index]