Learn R Programming

¡Cuádramelo!

Square it up for me! This package has function for balancing and rounding matrices subject to restrictions. One can adjust the matrix so that columns and rows add up to given vectors, round a matrix keeping the column and row totals, etc.

Copy Link

Version

Install

install.packages('cuadramelo')

Monthly Downloads

145

Version

1.0.0

License

GPL (>= 3)

Maintainer

Miguel Serrano

Last Published

October 10th, 2024

Functions in cuadramelo (1.0.0)

make_non_negative

Make non-negative
balance_matrix

Balance matrix
cuadramelo-package

cuadramelo: Matrix Balancing and Rounding
apply_by_block

Modify matrix by blocks
balance_by_blocks

Balance matrix by blocks
round_vector

Round univariate
round_by_blocks

Round matrix by blocks
round_matrix

Round a matrix