distribute_vector_over_matrix | R Documentation |
distributes per row each element of m_distribute over the elements of m_data pro rata the weight of each element per line in m_data
distribute_vector_over_matrix(m_data, m_distribute)
m_data |
x n numeric matrix |
m_distribute |
m x 1 numeric vector |
new matrix
m_distribute = c(1,10) m_data = matrix(c(1,2,20,10), nrow = 2, byrow = TRUE) distribute_vector_over_matrix(m_data, m_distribute)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.