Weight a variable
These functions weight the variable
a specific vector of
1 2 3
Vector with same length as
Numeric value indicating the number of decimal places to be
used for rounding the weighted values. By default, this value is
weight2() sums up all
weights values of the associated
weight() uses a
xtabs formula to weight cases. Thus,
may return a vector of different length than
The values of the returned vector are in sorted order, whereas the values'
order of the original
x may be spread randomly. Hence,
x can't be
used, for instance, for further cross tabulation. In case you want to have
weighted contingency tables or (grouped) box plots etc., use the
argument of most functions.
1 2 3 4 5 6 7 8 9 10 11 12
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.