powered by
Evaluate the size of each element contained in a model object.
weigh(x, threshold = 0, units = "MB", ...)
Tibble with weights of object components in decreasing magnitude.
A model object.
The minimum threshold desired for model component size to display.
The units in which to display the size of each component within the model object of interest. Defaults to MB. Other options include KB and GB.
MB
KB
GB
Any additional arguments for weighing.
simulate_x <- matrix(runif(1e+6), ncol = 2) simulate_y <- runif(dim(simulate_x)[1]) lm_out <- lm(simulate_y ~ simulate_x) weigh(lm_out)
Run the code above in your browser using DataLab