addmargins() Function in R
In this article, we will be discussing the addmargins() function with its working examples in the R programming language. addmargin() function The addmargins function in R is simply used to add arbitrary margins on a multidimensional table or array. Syntax: addmargins(A, margin = seq_along(dim(A)),