Created
February 1, 2023 18:25
-
-
Save mattgalbraith/46478ed005152691a9d145130ca5f8fb to your computer and use it in GitHub Desktop.
R function to get object size in human-readable units
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
obj_size <- function(x) object.size(x) %>% print(units = "auto") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment