Return a stype vector where the elements are weighted according to the specified inputs. By default, all of the weights for a stype vector are effectively constant.
a vector a values
a vector of weights (optional)
an optional list of functions. Each function should have
a signature of the form function(v, ...)
, and where v
is expected to be
of the result of calling as_canonical(x)
on the x
input to describe
,
and ...
is expected to be the unchanged value of the input to ...
in
describe
. If the input list is named then elements in the return object
corresponding to the result of evaluating the supplied functions will have
the corresponding names.