weightData | R Documentation |
To weight each data set based on input weighting vector
weightData(dataset, weighting)
dataset |
A list of data sets |
weighting |
A vector of weighting constant for each data set |
A list of weighted data sets
dataset = list(matrix(runif(5000, 1, 2), nrow = 100, ncol = 50),
matrix(runif(5000, 1, 2), nrow = 100, ncol = 50))
weighting = c(1, 2)
weighted_dataset = weightData(dataset, weighting)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.