'Is It Possible to Return the Sum from addmargins()

I am working with a motor vehicle thefts dataset. enter image description here

I created a Month column, then a two-way table based on Month and Arrest.

addmargins(table(vehicle_thefts$Month, vehicle_thefts$Arrest))

enter image description here

Is it possible to return just the total number of thefts (191,641)?

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source