Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. Ref_Date GEO PRI SEAS EST Vector Coordinate Value
  2. 1 1981/03 Canada Chained (2007) dollars Seasonally adjusted at annual rates Final consumption expenditure (x 1,000,000) v62305723 1.1.1.1 604670.000
  3. 2 1981/06 Canada Chained (2007) dollars Seasonally adjusted at annual rates Final consumption expenditure (x 1,000,000) v62305723 1.1.1.1 603745.000
  4. 3 1981/09 Canada Chained (2007) dollars Seasonally adjusted at annual rates Final consumption expenditure (x 1,000,000) v62305723 1.1.1.1 603415.000
  5. 4 1981/12 Canada Chained (2007) dollars Seasonally adjusted at annual rates Final consumption expenditure (x 1,000,000) v62305723 1.1.1.1 604700.000
  6. 5 1982/03 Canada Chained (2007) dollars Seasonally adjusted at annual rates Final consumption expenditure (x 1,000,000) v62305723 1.1.1.1 596566.000
  7. 6 1982/06 Canada Chained (2007) dollars Seasonally adjusted at annual rates Final consumption expenditure (x 1,000,000) v62305723 1.1.1.1 594937.000
  8.  
  9. for (est in unique(EST)) {
  10. if (!grepl("(x 1,000,000)", est)) {
  11. string_list = strsplit(est, " ");
  12. name = "";
  13. for (string in string_list) {
  14. name = paste(substr(string,1,1), name, " ");
  15. }
  16. assign(toupper(name), GDP[which(EST==est &
  17. PRI=="Current prices" &
  18. SEAS=="Seasonally adjusted at annual rates"),
  19. c(1,8)]);
  20. }
  21. }
  22.  
  23. Warning messages:
  24. 1: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  25. only the first element is used as variable name
  26. 2: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  27. only the first element is used as variable name
  28. 3: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  29. only the first element is used as variable name
  30. 4: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  31. only the first element is used as variable name
  32. 5: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  33. only the first element is used as variable name
  34. 6: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  35. only the first element is used as variable name
  36. 7: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  37. only the first element is used as variable name
  38. 8: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  39. only the first element is used as variable name
  40. 9: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  41. only the first element is used as variable name
  42. 10: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  43. only the first element is used as variable name
  44. 11: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  45. only the first element is used as variable name
  46. 12: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  47. only the first element is used as variable name
  48. 13: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  49. only the first element is used as variable name
  50. 14: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  51. only the first element is used as variable name
  52. 15: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  53. only the first element is used as variable name
  54. 16: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  55. only the first element is used as variable name
  56. 17: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  57. only the first element is used as variable name
  58. 18: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  59. only the first element is used as variable name
  60. 19: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  61. only the first element is used as variable name
  62. 20: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  63. only the first element is used as variable name
  64. 21: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  65. only the first element is used as variable name
  66. 22: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  67. only the first element is used as variable name
  68. 23: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  69. only the first element is used as variable name
  70. 24: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  71. only the first element is used as variable name
  72. 25: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  73. only the first element is used as variable name
  74. 26: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  75. only the first element is used as variable name
  76. 27: In assign(toupper(name), GDP[which(EST == est & PRI == ... :
  77. only the first element is used as variable name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement