Guest User

Untitled

a guest
Jan 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. > lsos()
  2. Type Size PrettySize Rows Columns
  3. all_subsets list 46673512 44.5 Mb 3 NA
  4. glm_Macro.part_1 list 15817064 15.1 Mb 2 NA
  5. glm_Macro.part_2 list 15817064 15.1 Mb 2 NA
  6. glm_Macro.part_3 list 15289864 14.6 Mb 2 NA
  7.  
  8. save(glm_Macro.part_1, file = "glm_Macro.part_1.rda")
  9.  
  10. library(multilevelPSA)
  11.  
  12. test_in_env <- function(){
  13. bloat <- rnorm(10000000)
  14.  
  15. clotting <- data.frame(
  16. u = c(5,10,15,20,30,40,60,80,100),
  17. lot1 = c(118,58,42,35,27,25,21,19,18),
  18. lot2 = c(69,35,26,21,18,16,13,12,12))
  19. glm(lot1 ~ log(u), data = clotting, family = Gamma)
  20. }
  21.  
  22. test.glm <- test_in_env()
  23. lsos()
  24. # Type Size PrettySize Rows Columns
  25. # test.glm glm 94936 92.7 Kb 30 NA
  26. # test_in_env function 12008 11.7 Kb NA NA
  27. # GCtorture logical 48 48 bytes 1 NA
  28.  
  29.  
  30. save(test.glm, file = "glm_env_local.Rda")
  31. # 75 Mb file created
  32.  
  33. bloat <- rnorm(10000000)
  34.  
  35. clotting <- data.frame(
  36. u = c(5,10,15,20,30,40,60,80,100),
  37. lot1 = c(118,58,42,35,27,25,21,19,18),
  38. lot2 = c(69,35,26,21,18,16,13,12,12))
  39. test.glm <- glm(lot1 ~ log(u), data = clotting, family = Gamma)
  40.  
  41. lsos()
  42. # bloat numeric 80000040 76.3 Mb 1e+07 NA
  43. # test.glm glm 94936 92.7 Kb 3e+01 NA
  44. # test_in_env function 12008 11.7 Kb NA NA
  45. # clotting data.frame 1280 1.2 Kb 9e+00 3
  46. # local.env.formula formula 880 880 bytes 3e+00 NA
  47. # GCtorture logical 48 48 bytes 1e+00 NA
  48.  
  49. save(test.glm, file = "glm_env_global.Rda")
  50. ## 5 Kb file
Add Comment
Please, Sign In to add comment