View source: R/matrix_mult.R View source: R/matrix_sum.R
diagcs | R Documentation |
Makes a diagonal matrix with the sums of columns of a matrix.
Diagonalizes the sums of each column of a matrix.
diagcs(df)
diagcs(df)
df |
A matrix with named rows and columns. |
A diagonal matrix with the sums of columns in the diagonal.
A diagonal matrix with the sums of columns in the diagonal.
wio <- make_wio("wiodtest")
diagcs(wio$W %*% wio$Bd)
wio <- make_wio("wiodtest")
diagcs(wio$W %*% wio$Bd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.