weight | R Documentation |
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.
weight(x, w, .descriptors = list()) ## S4 method for signature 'stype,stypeWeightVar,maybeDescriptor' weight(x, w, .descriptors = list()) ## S4 method for signature 'stype,weightVar,maybeDescriptor' weight(x, w, .descriptors = list())
x |
a vector a values |
w |
a vector of weights (optional) |
.descriptors |
an optional list of functions. Each function should have
a signature of the form |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.