R/tools.R
tools.Rd
Helper functions
drop_null(x) first(x) last(x) weighted_rowsums(x, weights) interest_accumulation(principal, contribution, rate)
weighted_rowsums() is used to get the row-wise sums of a matrix after column-wise multiplication by a vector of weights.
weighted_rowsums()