The Federal Reserve Economic Data (FRED) is a database maintained by the research division of Federal Reserve Bank that has more than 500,000 economic time series. They cover banking,business,fiscal,consumer price index,employment,trade,interest rate,monetary aggregates and financial data. The Real potential Gross Domestic profit is measured quarterly by the FRED, and it rapresents the CBO’s estimate of the output the economy would produce with a high rate of use of its capital and labor resources. The CBO provides budgetary and economic information in a variety of ways and at various point in the legislative process with analysis of budget,cost estimates, economic projections… The data analyzed is adjusted to remove the effects of inflation, while the Unit is in Billions of Chained 2009 Dollars not seasonally adjusted. ( <www.fred.stlouisfed.org> ; <www.cbo.gov> )
install.packages("Quandl")
library(Quandl)
## Loading required package: xts
## Loading required package: zoo
##
## Attaching package: 'zoo'
## The following objects are masked from 'package:base':
##
## as.Date, as.Date.numeric
The graph shows on the x-axis Date, wheras on the vertical axis the Value and It can be clearly seen that during the whole period there is a positive trend of GDP. What it is interesting to analyze is the particular period from 2000 to 2020, where the economy was afflicted by two crises/bubble(dotcom and subprime). Nevertheless, during these time, we observe a strong growth, without recession in productivity. Indeed, in less than 20 years, the Real Potential Gross Domestic Product doubled, from 10000 to more that 20000. Moreover, we can see this development also by the slope of line, from late ’80s it becomes steeper underline the strong and continous expansion. The same statement could be made for the future, forecasting show how the incresing will continue in years. To summarise, it easy to understand the trend of the chart; on the other hand,what it is not easy is determine when this trend will end, an infinite growth it is not possible. So, for how many years this great expansion could still be soustainable for the economy?
mydata <- Quandl("FRED/GDPPOT")
View(mydata)
## Warning in system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE):
## running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/
## Resources/modules/R_de.so'' had status 1
Subset
sub1 <- subset(mydata, Date > 1974-01-01)
sub1
## Date Value
## 1 2028-10-01 21329.9
## 2 2028-07-01 21237.2
## 3 2028-04-01 21144.6
## 4 2028-01-01 21052.4
## 5 2027-10-01 20960.9
## 6 2027-07-01 20870.3
## 7 2027-04-01 20780.4
## 8 2027-01-01 20691.2
## 9 2026-10-01 20603.1
## 10 2026-07-01 20515.7
## 11 2026-04-01 20428.7
## 12 2026-01-01 20341.8
## 13 2025-10-01 20254.6
## 14 2025-07-01 20167.3
## 15 2025-04-01 20079.7
## 16 2025-01-01 19991.6
## 17 2024-10-01 19902.7
## 18 2024-07-01 19813.0
## 19 2024-04-01 19722.7
## 20 2024-01-01 19631.9
## 21 2023-10-01 19540.5
## 22 2023-07-01 19448.8
## 23 2023-04-01 19356.7
## 24 2023-01-01 19264.4
## 25 2022-10-01 19172.1
## 26 2022-07-01 19079.5
## 27 2022-04-01 18986.8
## 28 2022-01-01 18893.9
## 29 2021-10-01 18800.9
## 30 2021-07-01 18708.0
## 31 2021-04-01 18615.0
## 32 2021-01-01 18521.8
## 33 2020-10-01 18428.3
## 34 2020-07-01 18334.0
## 35 2020-04-01 18239.3
## 36 2020-01-01 18144.5
## 37 2019-10-01 18049.2
## 38 2019-07-01 17953.1
## 39 2019-04-01 17857.7
## 40 2019-01-01 17763.7
## 41 2018-10-01 17672.0
## 42 2018-07-01 17582.5
## 43 2018-04-01 17495.8
## 44 2018-01-01 17412.2
## 45 2017-10-01 17333.0
## 46 2017-07-01 17259.8
## 47 2017-04-01 17189.4
## 48 2017-01-01 17121.0
## 49 2016-10-01 17054.1
## 50 2016-07-01 16986.2
## 51 2016-04-01 16918.3
## 52 2016-01-01 16850.1
## 53 2015-10-01 16778.9
## 54 2015-07-01 16707.3
## 55 2015-04-01 16636.1
## 56 2015-01-01 16565.9
## 57 2014-10-01 16498.4
## 58 2014-07-01 16433.1
## 59 2014-04-01 16369.3
## 60 2014-01-01 16306.7
## 61 2013-10-01 16245.4
## 62 2013-07-01 16184.3
## 63 2013-04-01 16124.1
## 64 2013-01-01 16065.1
## 65 2012-10-01 16006.7
## 66 2012-07-01 15950.2
## 67 2012-04-01 15895.3
## 68 2012-01-01 15842.1
## 69 2011-10-01 15791.6
## 70 2011-07-01 15742.3
## 71 2011-04-01 15694.8
## 72 2011-01-01 15649.2
## 73 2010-10-01 15605.0
## 74 2010-07-01 15566.3
## 75 2010-04-01 15528.5
## 76 2010-01-01 15490.7
## 77 2009-10-01 15452.0
## 78 2009-07-01 15409.6
## 79 2009-04-01 15363.7
## 80 2009-01-01 15313.6
## 81 2008-10-01 15255.2
## 82 2008-07-01 15190.9
## 83 2008-04-01 15123.0
## 84 2008-01-01 15052.7
## 85 2007-10-01 14982.1
## 86 2007-07-01 14911.4
## 87 2007-04-01 14840.0
## 88 2007-01-01 14768.1
## 89 2006-10-01 14697.2
## 90 2006-07-01 14626.5
## 91 2006-04-01 14554.6
## 92 2006-01-01 14480.7
## 93 2005-10-01 14403.2
## 94 2005-07-01 14320.9
## 95 2005-04-01 14235.9
## 96 2005-01-01 14148.7
## 97 2004-10-01 14058.8
## 98 2004-07-01 13968.3
## 99 2004-04-01 13877.2
## 100 2004-01-01 13786.3
## 101 2003-10-01 13698.1
## 102 2003-07-01 13610.9
## 103 2003-04-01 13523.8
## 104 2003-01-01 13436.7
## 105 2002-10-01 13348.6
## 106 2002-07-01 13261.4
## 107 2002-04-01 13172.7
## 108 2002-01-01 13081.6
## 109 2001-10-01 12986.7
## 110 2001-07-01 12886.7
## 111 2001-04-01 12782.6
## 112 2001-01-01 12674.2
## 113 2000-10-01 12559.7
## 114 2000-07-01 12439.6
## 115 2000-04-01 12316.7
## 116 2000-01-01 12191.9
## 117 1999-10-01 12067.6
## 118 1999-07-01 11943.0
## 119 1999-04-01 11819.1
## 120 1999-01-01 11696.4
## 121 1998-10-01 11577.2
## 122 1998-07-01 11459.2
## 123 1998-04-01 11343.6
## 124 1998-01-01 11231.0
## 125 1997-10-01 11121.8
## 126 1997-07-01 11016.2
## 127 1997-04-01 10914.6
## 128 1997-01-01 10817.5
## 129 1996-10-01 10726.1
## 130 1996-07-01 10640.8
## 131 1996-04-01 10560.0
## 132 1996-01-01 10483.1
## 133 1995-10-01 10409.8
## 134 1995-07-01 10339.7
## 135 1995-04-01 10272.0
## 136 1995-01-01 10206.0
## 137 1994-10-01 10139.9
## 138 1994-07-01 10074.5
## 139 1994-04-01 10010.1
## 140 1994-01-01 9946.5
## 141 1993-10-01 9883.5
## 142 1993-07-01 9821.6
## 143 1993-04-01 9760.5
## 144 1993-01-01 9700.3
## 145 1992-10-01 9641.1
## 146 1992-07-01 9583.2
## 147 1992-04-01 9525.9
## 148 1992-01-01 9468.7
## 149 1991-10-01 9411.1
## 150 1991-07-01 9353.5
## 151 1991-04-01 9295.2
## 152 1991-01-01 9235.9
## 153 1990-10-01 9174.7
## 154 1990-07-01 9111.6
## 155 1990-04-01 9047.1
## 156 1990-01-01 8981.4
## 157 1989-10-01 8914.3
## 158 1989-07-01 8846.2
## 159 1989-04-01 8777.3
## 160 1989-01-01 8708.0
## 161 1988-10-01 8639.0
## 162 1988-07-01 8569.8
## 163 1988-04-01 8500.5
## 164 1988-01-01 8431.1
## 165 1987-10-01 8361.7
## 166 1987-07-01 8292.4
## 167 1987-04-01 8223.0
## 168 1987-01-01 8153.4
## 169 1986-10-01 8083.6
## 170 1986-07-01 8013.3
## 171 1986-04-01 7942.9
## 172 1986-01-01 7872.2
## 173 1985-10-01 7801.2
## 174 1985-07-01 7729.1
## 175 1985-04-01 7657.4
## 176 1985-01-01 7586.3
## 177 1984-10-01 7516.4
## 178 1984-07-01 7448.4
## 179 1984-04-01 7381.9
## 180 1984-01-01 7317.2
## 181 1983-10-01 7255.3
## 182 1983-07-01 7195.7
## 183 1983-04-01 7137.4
## 184 1983-01-01 7080.0
## 185 1982-10-01 7022.4
## 186 1982-07-01 6962.5
## 187 1982-04-01 6903.4
## 188 1982-01-01 6846.1
## 189 1981-10-01 6790.7
## 190 1981-07-01 6742.1
## 191 1981-04-01 6696.7
## 192 1981-01-01 6654.6
## 193 1980-10-01 6618.0
## 194 1980-07-01 6583.7
## 195 1980-04-01 6549.6
## 196 1980-01-01 6514.2
## 197 1979-10-01 6472.9
## 198 1979-07-01 6427.0
## 199 1979-04-01 6378.5
## 200 1979-01-01 6327.9
## 201 1978-10-01 6275.0
## 202 1978-07-01 6221.1
## 203 1978-04-01 6166.8
## 204 1978-01-01 6112.9
## 205 1977-10-01 6061.7
## 206 1977-07-01 6011.6
## 207 1977-04-01 5962.6
## 208 1977-01-01 5914.5
## 209 1976-10-01 5867.5
## 210 1976-07-01 5822.2
## 211 1976-04-01 5777.4
## 212 1976-01-01 5732.8
## 213 1975-10-01 5687.8
## 214 1975-07-01 5641.5
sub2 <- subset(mydata, Value > 20000)
sub2
## Date Value
## 1 2028-10-01 21329.9
## 2 2028-07-01 21237.2
## 3 2028-04-01 21144.6
## 4 2028-01-01 21052.4
## 5 2027-10-01 20960.9
## 6 2027-07-01 20870.3
## 7 2027-04-01 20780.4
## 8 2027-01-01 20691.2
## 9 2026-10-01 20603.1
## 10 2026-07-01 20515.7
## 11 2026-04-01 20428.7
## 12 2026-01-01 20341.8
## 13 2025-10-01 20254.6
## 14 2025-07-01 20167.3
## 15 2025-04-01 20079.7
sub3 <- mydata[sample(1:nrow(mydata), 50, replace = FALSE),]
sub3
## Date Value
## 30 2021-07-01 18708.0
## 11 2026-04-01 20428.7
## 250 1966-07-01 4057.8
## 25 2022-10-01 19172.1
## 132 1996-01-01 10483.1
## 32 2021-01-01 18521.8
## 63 2013-04-01 16124.1
## 104 2003-01-01 13436.7
## 184 1983-01-01 7080.0
## 253 1965-10-01 3920.4
## 221 1973-10-01 5298.4
## 82 2008-07-01 15190.9
## 301 1953-10-01 2552.7
## 33 2020-10-01 18428.3
## 195 1980-04-01 6549.6
## 28 2022-01-01 18893.9
## 244 1968-01-01 4354.2
## 191 1981-04-01 6696.7
## 157 1989-10-01 8914.3
## 99 2004-04-01 13877.2
## 2 2028-07-01 21237.2
## 117 1999-10-01 12067.6
## 289 1956-10-01 2753.4
## 139 1994-04-01 10010.1
## 52 2016-01-01 16850.1
## 53 2015-10-01 16778.9
## 199 1979-04-01 6378.5
## 163 1988-04-01 8500.5
## 116 2000-01-01 12191.9
## 238 1969-07-01 4651.4
## 56 2015-01-01 16565.9
## 92 2006-01-01 14480.7
## 272 1961-01-01 3219.9
## 119 1999-04-01 11819.1
## 78 2009-07-01 15409.6
## 203 1978-04-01 6166.8
## 196 1980-01-01 6514.2
## 208 1977-01-01 5914.5
## 17 2024-10-01 19902.7
## 219 1974-04-01 5396.5
## 75 2010-04-01 15528.5
## 22 2023-07-01 19448.8
## 207 1977-04-01 5962.6
## 247 1967-04-01 4204.3
## 292 1956-01-01 2698.4
## 39 2019-04-01 17857.7
## 275 1960-04-01 3126.0
## 307 1952-04-01 2397.6
## 317 1949-10-01 2083.9
## 271 1961-04-01 3251.7
Statistics
stat <- summary(mydata)
stat
## Date Value
## Min. :1949-01-01 Min. : 2005
## 1st Qu.:1968-12-09 1st Qu.: 4545
## Median :1988-11-16 Median : 8674
## Mean :1988-11-15 Mean : 9811
## 3rd Qu.:2008-10-24 3rd Qu.:15270
## Max. :2028-10-01 Max. :21330
typeof(mydata$Value)
## [1] "double"
lapply(as.data.frame(mydata$Value),sd)
## $`mydata$Value`
## [1] 5861.855
Graph
install.packages("ggplot2")
As we can notice, the Data are in a Wide format.
In this Dataset there is only one variable (Value),so I added the rate of Unemployment during the same period.
mydata2 <- Quandl("FRED/NROU")
unemployment<- as.vector(mydata2$Value)
newda<- cbind(as.matrix(mydata), unemployment)
newda
## Date Value unemployment
## [1,] "2028-10-01" "21329.9" "4.55"
## [2,] "2028-07-01" "21237.2" "4.55"
## [3,] "2028-04-01" "21144.6" "4.56"
## [4,] "2028-01-01" "21052.4" "4.56"
## [5,] "2027-10-01" "20960.9" "4.56"
## [6,] "2027-07-01" "20870.3" "4.56"
## [7,] "2027-04-01" "20780.4" "4.56"
## [8,] "2027-01-01" "20691.2" "4.56"
## [9,] "2026-10-01" "20603.1" "4.57"
## [10,] "2026-07-01" "20515.7" "4.57"
## [11,] "2026-04-01" "20428.7" "4.57"
## [12,] "2026-01-01" "20341.8" "4.57"
## [13,] "2025-10-01" "20254.6" "4.57"
## [14,] "2025-07-01" "20167.3" "4.57"
## [15,] "2025-04-01" "20079.7" "4.57"
## [16,] "2025-01-01" "19991.6" "4.58"
## [17,] "2024-10-01" "19902.7" "4.58"
## [18,] "2024-07-01" "19813.0" "4.58"
## [19,] "2024-04-01" "19722.7" "4.58"
## [20,] "2024-01-01" "19631.9" "4.58"
## [21,] "2023-10-01" "19540.5" "4.58"
## [22,] "2023-07-01" "19448.8" "4.59"
## [23,] "2023-04-01" "19356.7" "4.59"
## [24,] "2023-01-01" "19264.4" "4.59"
## [25,] "2022-10-01" "19172.1" "4.59"
## [26,] "2022-07-01" "19079.5" "4.59"
## [27,] "2022-04-01" "18986.8" "4.59"
## [28,] "2022-01-01" "18893.9" "4.59"
## [29,] "2021-10-01" "18800.9" "4.6"
## [30,] "2021-07-01" "18708.0" "4.6"
## [31,] "2021-04-01" "18615.0" "4.6"
## [32,] "2021-01-01" "18521.8" "4.6"
## [33,] "2020-10-01" "18428.3" "4.6"
## [34,] "2020-07-01" "18334.0" "4.6"
## [35,] "2020-04-01" "18239.3" "4.61"
## [36,] "2020-01-01" "18144.5" "4.61"
## [37,] "2019-10-01" "18049.2" "4.61"
## [38,] "2019-07-01" "17953.1" "4.61"
## [39,] "2019-04-01" "17857.7" "4.61"
## [40,] "2019-01-01" "17763.7" "4.61"
## [41,] "2018-10-01" "17672.0" "4.61"
## [42,] "2018-07-01" "17582.5" "4.62"
## [43,] "2018-04-01" "17495.8" "4.62"
## [44,] "2018-01-01" "17412.2" "4.62"
## [45,] "2017-10-01" "17333.0" "4.62"
## [46,] "2017-07-01" "17259.8" "4.62"
## [47,] "2017-04-01" "17189.4" "4.63"
## [48,] "2017-01-01" "17121.0" "4.62"
## [49,] "2016-10-01" "17054.1" "4.62"
## [50,] "2016-07-01" "16986.2" "4.62"
## [51,] "2016-04-01" "16918.3" "4.62"
## [52,] "2016-01-01" "16850.1" "4.63"
## [53,] "2015-10-01" "16778.9" "4.64"
## [54,] "2015-07-01" "16707.3" "4.66"
## [55,] "2015-04-01" "16636.1" "4.69"
## [56,] "2015-01-01" "16565.9" "4.72"
## [57,] "2014-10-01" "16498.4" "4.76"
## [58,] "2014-07-01" "16433.1" "4.8"
## [59,] "2014-04-01" "16369.3" "4.83"
## [60,] "2014-01-01" "16306.7" "4.86"
## [61,] "2013-10-01" "16245.4" "4.89"
## [62,] "2013-07-01" "16184.3" "4.91"
## [63,] "2013-04-01" "16124.1" "4.94"
## [64,] "2013-01-01" "16065.1" "4.97"
## [65,] "2012-10-01" "16006.7" "4.99"
## [66,] "2012-07-01" "15950.2" "5.02"
## [67,] "2012-04-01" "15895.3" "5.05"
## [68,] "2012-01-01" "15842.1" "5.07"
## [69,] "2011-10-01" "15791.6" "5.08"
## [70,] "2011-07-01" "15742.3" "5.08"
## [71,] "2011-04-01" "15694.8" "5.08"
## [72,] "2011-01-01" "15649.2" "5.08"
## [73,] "2010-10-01" "15605.0" "5.07"
## [74,] "2010-07-01" "15566.3" "5.05"
## [75,] "2010-04-01" "15528.5" "5.03"
## [76,] "2010-01-01" "15490.7" "5.01"
## [77,] "2009-10-01" "15452.0" "4.98"
## [78,] "2009-07-01" "15409.6" "4.95"
## [79,] "2009-04-01" "15363.7" "4.92"
## [80,] "2009-01-01" "15313.6" "4.9"
## [81,] "2008-10-01" "15255.2" "4.88"
## [82,] "2008-07-01" "15190.9" "4.87"
## [83,] "2008-04-01" "15123.0" "4.88"
## [84,] "2008-01-01" "15052.7" "4.89"
## [85,] "2007-10-01" "14982.1" "4.9"
## [86,] "2007-07-01" "14911.4" "4.92"
## [87,] "2007-04-01" "14840.0" "4.93"
## [88,] "2007-01-01" "14768.1" "4.95"
## [89,] "2006-10-01" "14697.2" "4.97"
## [90,] "2006-07-01" "14626.5" "4.98"
## [91,] "2006-04-01" "14554.6" "4.99"
## [92,] "2006-01-01" "14480.7" "4.99"
## [93,] "2005-10-01" "14403.2" "5"
## [94,] "2005-07-01" "14320.9" "5"
## [95,] "2005-04-01" "14235.9" "5.01"
## [96,] "2005-01-01" "14148.7" "5.02"
## [97,] "2004-10-01" "14058.8" "5.03"
## [98,] "2004-07-01" "13968.3" "5.04"
## [99,] "2004-04-01" "13877.2" "5.05"
## [100,] "2004-01-01" "13786.3" "5.06"
## [101,] "2003-10-01" "13698.1" "5.07"
## [102,] "2003-07-01" "13610.9" "5.08"
## [103,] "2003-04-01" "13523.8" "5.09"
## [104,] "2003-01-01" "13436.7" "5.1"
## [105,] "2002-10-01" "13348.6" "5.11"
## [106,] "2002-07-01" "13261.4" "5.12"
## [107,] "2002-04-01" "13172.7" "5.13"
## [108,] "2002-01-01" "13081.6" "5.14"
## [109,] "2001-10-01" "12986.7" "5.15"
## [110,] "2001-07-01" "12886.7" "5.16"
## [111,] "2001-04-01" "12782.6" "5.17"
## [112,] "2001-01-01" "12674.2" "5.18"
## [113,] "2000-10-01" "12559.7" "5.19"
## [114,] "2000-07-01" "12439.6" "5.2"
## [115,] "2000-04-01" "12316.7" "5.21"
## [116,] "2000-01-01" "12191.9" "5.22"
## [117,] "1999-10-01" "12067.6" "5.24"
## [118,] "1999-07-01" "11943.0" "5.25"
## [119,] "1999-04-01" "11819.1" "5.26"
## [120,] "1999-01-01" "11696.4" "5.27"
## [121,] "1998-10-01" "11577.2" "5.28"
## [122,] "1998-07-01" "11459.2" "5.29"
## [123,] "1998-04-01" "11343.6" "5.29"
## [124,] "1998-01-01" "11231.0" "5.3"
## [125,] "1997-10-01" "11121.8" "5.31"
## [126,] "1997-07-01" "11016.2" "5.32"
## [127,] "1997-04-01" "10914.6" "5.33"
## [128,] "1997-01-01" "10817.5" "5.34"
## [129,] "1996-10-01" "10726.1" "5.35"
## [130,] "1996-07-01" "10640.8" "5.36"
## [131,] "1996-04-01" "10560.0" "5.37"
## [132,] "1996-01-01" "10483.1" "5.38"
## [133,] "1995-10-01" "10409.8" "5.39"
## [134,] "1995-07-01" "10339.7" "5.4"
## [135,] "1995-04-01" "10272.0" "5.41"
## [136,] "1995-01-01" "10206.0" "5.42"
## [137,] "1994-10-01" "10139.9" "5.43"
## [138,] "1994-07-01" "10074.5" "5.44"
## [139,] "1994-04-01" "10010.1" "5.45"
## [140,] "1994-01-01" " 9946.5" "5.47"
## [141,] "1993-10-01" " 9883.5" "5.48"
## [142,] "1993-07-01" " 9821.6" "5.49"
## [143,] "1993-04-01" " 9760.5" "5.51"
## [144,] "1993-01-01" " 9700.3" "5.52"
## [145,] "1992-10-01" " 9641.1" "5.54"
## [146,] "1992-07-01" " 9583.2" "5.55"
## [147,] "1992-04-01" " 9525.9" "5.57"
## [148,] "1992-01-01" " 9468.7" "5.59"
## [149,] "1991-10-01" " 9411.1" "5.6"
## [150,] "1991-07-01" " 9353.5" "5.62"
## [151,] "1991-04-01" " 9295.2" "5.64"
## [152,] "1991-01-01" " 9235.9" "5.66"
## [153,] "1990-10-01" " 9174.7" "5.67"
## [154,] "1990-07-01" " 9111.6" "5.69"
## [155,] "1990-04-01" " 9047.1" "5.71"
## [156,] "1990-01-01" " 8981.4" "5.73"
## [157,] "1989-10-01" " 8914.3" "5.75"
## [158,] "1989-07-01" " 8846.2" "5.77"
## [159,] "1989-04-01" " 8777.3" "5.79"
## [160,] "1989-01-01" " 8708.0" "5.81"
## [161,] "1988-10-01" " 8639.0" "5.83"
## [162,] "1988-07-01" " 8569.8" "5.85"
## [163,] "1988-04-01" " 8500.5" "5.87"
## [164,] "1988-01-01" " 8431.1" "5.89"
## [165,] "1987-10-01" " 8361.7" "5.9"
## [166,] "1987-07-01" " 8292.4" "5.92"
## [167,] "1987-04-01" " 8223.0" "5.93"
## [168,] "1987-01-01" " 8153.4" "5.95"
## [169,] "1986-10-01" " 8083.6" "5.96"
## [170,] "1986-07-01" " 8013.3" "5.97"
## [171,] "1986-04-01" " 7942.9" "5.99"
## [172,] "1986-01-01" " 7872.2" "6"
## [173,] "1985-10-01" " 7801.2" "6.01"
## [174,] "1985-07-01" " 7729.1" "6.02"
## [175,] "1985-04-01" " 7657.4" "6.03"
## [176,] "1985-01-01" " 7586.3" "6.04"
## [177,] "1984-10-01" " 7516.4" "6.05"
## [178,] "1984-07-01" " 7448.4" "6.06"
## [179,] "1984-04-01" " 7381.9" "6.07"
## [180,] "1984-01-01" " 7317.2" "6.08"
## [181,] "1983-10-01" " 7255.3" "6.09"
## [182,] "1983-07-01" " 7195.7" "6.09"
## [183,] "1983-04-01" " 7137.4" "6.1"
## [184,] "1983-01-01" " 7080.0" "6.11"
## [185,] "1982-10-01" " 7022.4" "6.12"
## [186,] "1982-07-01" " 6962.5" "6.13"
## [187,] "1982-04-01" " 6903.4" "6.14"
## [188,] "1982-01-01" " 6846.1" "6.15"
## [189,] "1981-10-01" " 6790.7" "6.16"
## [190,] "1981-07-01" " 6742.1" "6.17"
## [191,] "1981-04-01" " 6696.7" "6.18"
## [192,] "1981-01-01" " 6654.6" "6.19"
## [193,] "1980-10-01" " 6618.0" "6.2"
## [194,] "1980-07-01" " 6583.7" "6.2"
## [195,] "1980-04-01" " 6549.6" "6.21"
## [196,] "1980-01-01" " 6514.2" "6.22"
## [197,] "1979-10-01" " 6472.9" "6.22"
## [198,] "1979-07-01" " 6427.0" "6.23"
## [199,] "1979-04-01" " 6378.5" "6.23"
## [200,] "1979-01-01" " 6327.9" "6.24"
## [201,] "1978-10-01" " 6275.0" "6.24"
## [202,] "1978-07-01" " 6221.1" "6.24"
## [203,] "1978-04-01" " 6166.8" "6.24"
## [204,] "1978-01-01" " 6112.9" "6.24"
## [205,] "1977-10-01" " 6061.7" "6.24"
## [206,] "1977-07-01" " 6011.6" "6.24"
## [207,] "1977-04-01" " 5962.6" "6.23"
## [208,] "1977-01-01" " 5914.5" "6.23"
## [209,] "1976-10-01" " 5867.5" "6.22"
## [210,] "1976-07-01" " 5822.2" "6.22"
## [211,] "1976-04-01" " 5777.4" "6.21"
## [212,] "1976-01-01" " 5732.8" "6.2"
## [213,] "1975-10-01" " 5687.8" "6.2"
## [214,] "1975-07-01" " 5641.5" "6.19"
## [215,] "1975-04-01" " 5594.6" "6.18"
## [216,] "1975-01-01" " 5547.0" "6.17"
## [217,] "1974-10-01" " 5497.7" "6.16"
## [218,] "1974-07-01" " 5447.1" "6.15"
## [219,] "1974-04-01" " 5396.5" "6.14"
## [220,] "1974-01-01" " 5346.5" "6.13"
## [221,] "1973-10-01" " 5298.4" "6.11"
## [222,] "1973-07-01" " 5252.5" "6.1"
## [223,] "1973-04-01" " 5208.1" "6.09"
## [224,] "1973-01-01" " 5165.6" "6.07"
## [225,] "1972-10-01" " 5125.7" "6.06"
## [226,] "1972-07-01" " 5087.7" "6.04"
## [227,] "1972-04-01" " 5051.1" "6.03"
## [228,] "1972-01-01" " 5015.6" "6.01"
## [229,] "1971-10-01" " 4980.2" "5.99"
## [230,] "1971-07-01" " 4946.1" "5.98"
## [231,] "1971-04-01" " 4912.3" "5.96"
## [232,] "1971-01-01" " 4878.4" "5.95"
## [233,] "1970-10-01" " 4843.8" "5.93"
## [234,] "1970-07-01" " 4809.1" "5.92"
## [235,] "1970-04-01" " 4773.2" "5.9"
## [236,] "1970-01-01" " 4735.7" "5.89"
## [237,] "1969-10-01" " 4695.4" "5.88"
## [238,] "1969-07-01" " 4651.4" "5.86"
## [239,] "1969-04-01" " 4605.4" "5.85"
## [240,] "1969-01-01" " 4557.6" "5.84"
## [241,] "1968-10-01" " 4507.7" "5.83"
## [242,] "1968-07-01" " 4457.0" "5.82"
## [243,] "1968-04-01" " 4405.7" "5.8"
## [244,] "1968-01-01" " 4354.2" "5.79"
## [245,] "1967-10-01" " 4304.4" "5.78"
## [246,] "1967-07-01" " 4254.2" "5.77"
## [247,] "1967-04-01" " 4204.3" "5.76"
## [248,] "1967-01-01" " 4154.9" "5.75"
## [249,] "1966-10-01" " 4105.8" "5.73"
## [250,] "1966-07-01" " 4057.8" "5.72"
## [251,] "1966-04-01" " 4010.7" "5.71"
## [252,] "1966-01-01" " 3964.7" "5.7"
## [253,] "1965-10-01" " 3920.4" "5.69"
## [254,] "1965-07-01" " 3877.4" "5.67"
## [255,] "1965-04-01" " 3835.3" "5.66"
## [256,] "1965-01-01" " 3794.3" "5.65"
## [257,] "1964-10-01" " 3754.0" "5.63"
## [258,] "1964-07-01" " 3714.8" "5.62"
## [259,] "1964-04-01" " 3676.4" "5.61"
## [260,] "1964-01-01" " 3638.6" "5.6"
## [261,] "1963-10-01" " 3601.2" "5.58"
## [262,] "1963-07-01" " 3563.8" "5.57"
## [263,] "1963-04-01" " 3526.8" "5.56"
## [264,] "1963-01-01" " 3490.3" "5.55"
## [265,] "1962-10-01" " 3454.0" "5.54"
## [266,] "1962-07-01" " 3418.6" "5.53"
## [267,] "1962-04-01" " 3383.8" "5.52"
## [268,] "1962-01-01" " 3349.7" "5.51"
## [269,] "1961-10-01" " 3316.6" "5.51"
## [270,] "1961-07-01" " 3283.9" "5.5"
## [271,] "1961-04-01" " 3251.7" "5.49"
## [272,] "1961-01-01" " 3219.9" "5.48"
## [273,] "1960-10-01" " 3188.2" "5.48"
## [274,] "1960-07-01" " 3156.8" "5.47"
## [275,] "1960-04-01" " 3126.0" "5.46"
## [276,] "1960-01-01" " 3095.7" "5.46"
## [277,] "1959-10-01" " 3066.1" "5.45"
## [278,] "1959-07-01" " 3037.4" "5.44"
## [279,] "1959-04-01" " 3009.2" "5.44"
## [280,] "1959-01-01" " 2981.5" "5.43"
## [281,] "1958-10-01" " 2954.1" "5.43"
## [282,] "1958-07-01" " 2926.2" "5.42"
## [283,] "1958-04-01" " 2898.8" "5.42"
## [284,] "1958-01-01" " 2871.9" "5.41"
## [285,] "1957-10-01" " 2845.5" "5.41"
## [286,] "1957-07-01" " 2820.5" "5.41"
## [287,] "1957-04-01" " 2796.7" "5.4"
## [288,] "1957-01-01" " 2774.0" "5.4"
## [289,] "1956-10-01" " 2753.4" "5.4"
## [290,] "1956-07-01" " 2734.1" "5.4"
## [291,] "1956-04-01" " 2715.9" "5.39"
## [292,] "1956-01-01" " 2698.4" "5.39"
## [293,] "1955-10-01" " 2681.1" "5.39"
## [294,] "1955-07-01" " 2664.5" "5.39"
## [295,] "1955-04-01" " 2648.3" "5.38"
## [296,] "1955-01-01" " 2632.4" "5.38"
## [297,] "1954-10-01" " 2616.5" "5.38"
## [298,] "1954-07-01" " 2601.6" "5.38"
## [299,] "1954-04-01" " 2586.4" "5.37"
## [300,] "1954-01-01" " 2570.3" "5.37"
## [301,] "1953-10-01" " 2552.7" "5.37"
## [302,] "1953-07-01" " 2532.9" "5.36"
## [303,] "1953-04-01" " 2511.2" "5.36"
## [304,] "1953-01-01" " 2487.3" "5.35"
## [305,] "1952-10-01" " 2460.0" "5.35"
## [306,] "1952-07-01" " 2429.6" "5.34"
## [307,] "1952-04-01" " 2397.6" "5.34"
## [308,] "1952-01-01" " 2364.4" "5.33"
## [309,] "1951-10-01" " 2331.0" "5.33"
## [310,] "1951-07-01" " 2297.2" "5.32"
## [311,] "1951-04-01" " 2263.5" "5.31"
## [312,] "1951-01-01" " 2230.3" "5.31"
## [313,] "1950-10-01" " 2199.0" "5.3"
## [314,] "1950-07-01" " 2168.9" "5.29"
## [315,] "1950-04-01" " 2139.7" "5.29"
## [316,] "1950-01-01" " 2111.3" "5.28"
## [317,] "1949-10-01" " 2083.9" "5.27"
## [318,] "1949-07-01" " 2057.1" "5.27"
## [319,] "1949-04-01" " 2030.9" "5.26"
## [320,] "1949-01-01" " 2005.2" "5.26"
We convert the Data in a Long format
df<-as.data.frame(newda)
library(tidyr)
longdf <- gather(df,unemployment,Value, -Date)
## Warning: attributes are not identical across measure variables;
## they will be dropped
longdf
## Date unemployment Value
## 1 2028-10-01 Value 21329.9
## 2 2028-07-01 Value 21237.2
## 3 2028-04-01 Value 21144.6
## 4 2028-01-01 Value 21052.4
## 5 2027-10-01 Value 20960.9
## 6 2027-07-01 Value 20870.3
## 7 2027-04-01 Value 20780.4
## 8 2027-01-01 Value 20691.2
## 9 2026-10-01 Value 20603.1
## 10 2026-07-01 Value 20515.7
## 11 2026-04-01 Value 20428.7
## 12 2026-01-01 Value 20341.8
## 13 2025-10-01 Value 20254.6
## 14 2025-07-01 Value 20167.3
## 15 2025-04-01 Value 20079.7
## 16 2025-01-01 Value 19991.6
## 17 2024-10-01 Value 19902.7
## 18 2024-07-01 Value 19813.0
## 19 2024-04-01 Value 19722.7
## 20 2024-01-01 Value 19631.9
## 21 2023-10-01 Value 19540.5
## 22 2023-07-01 Value 19448.8
## 23 2023-04-01 Value 19356.7
## 24 2023-01-01 Value 19264.4
## 25 2022-10-01 Value 19172.1
## 26 2022-07-01 Value 19079.5
## 27 2022-04-01 Value 18986.8
## 28 2022-01-01 Value 18893.9
## 29 2021-10-01 Value 18800.9
## 30 2021-07-01 Value 18708.0
## 31 2021-04-01 Value 18615.0
## 32 2021-01-01 Value 18521.8
## 33 2020-10-01 Value 18428.3
## 34 2020-07-01 Value 18334.0
## 35 2020-04-01 Value 18239.3
## 36 2020-01-01 Value 18144.5
## 37 2019-10-01 Value 18049.2
## 38 2019-07-01 Value 17953.1
## 39 2019-04-01 Value 17857.7
## 40 2019-01-01 Value 17763.7
## 41 2018-10-01 Value 17672.0
## 42 2018-07-01 Value 17582.5
## 43 2018-04-01 Value 17495.8
## 44 2018-01-01 Value 17412.2
## 45 2017-10-01 Value 17333.0
## 46 2017-07-01 Value 17259.8
## 47 2017-04-01 Value 17189.4
## 48 2017-01-01 Value 17121.0
## 49 2016-10-01 Value 17054.1
## 50 2016-07-01 Value 16986.2
## 51 2016-04-01 Value 16918.3
## 52 2016-01-01 Value 16850.1
## 53 2015-10-01 Value 16778.9
## 54 2015-07-01 Value 16707.3
## 55 2015-04-01 Value 16636.1
## 56 2015-01-01 Value 16565.9
## 57 2014-10-01 Value 16498.4
## 58 2014-07-01 Value 16433.1
## 59 2014-04-01 Value 16369.3
## 60 2014-01-01 Value 16306.7
## 61 2013-10-01 Value 16245.4
## 62 2013-07-01 Value 16184.3
## 63 2013-04-01 Value 16124.1
## 64 2013-01-01 Value 16065.1
## 65 2012-10-01 Value 16006.7
## 66 2012-07-01 Value 15950.2
## 67 2012-04-01 Value 15895.3
## 68 2012-01-01 Value 15842.1
## 69 2011-10-01 Value 15791.6
## 70 2011-07-01 Value 15742.3
## 71 2011-04-01 Value 15694.8
## 72 2011-01-01 Value 15649.2
## 73 2010-10-01 Value 15605.0
## 74 2010-07-01 Value 15566.3
## 75 2010-04-01 Value 15528.5
## 76 2010-01-01 Value 15490.7
## 77 2009-10-01 Value 15452.0
## 78 2009-07-01 Value 15409.6
## 79 2009-04-01 Value 15363.7
## 80 2009-01-01 Value 15313.6
## 81 2008-10-01 Value 15255.2
## 82 2008-07-01 Value 15190.9
## 83 2008-04-01 Value 15123.0
## 84 2008-01-01 Value 15052.7
## 85 2007-10-01 Value 14982.1
## 86 2007-07-01 Value 14911.4
## 87 2007-04-01 Value 14840.0
## 88 2007-01-01 Value 14768.1
## 89 2006-10-01 Value 14697.2
## 90 2006-07-01 Value 14626.5
## 91 2006-04-01 Value 14554.6
## 92 2006-01-01 Value 14480.7
## 93 2005-10-01 Value 14403.2
## 94 2005-07-01 Value 14320.9
## 95 2005-04-01 Value 14235.9
## 96 2005-01-01 Value 14148.7
## 97 2004-10-01 Value 14058.8
## 98 2004-07-01 Value 13968.3
## 99 2004-04-01 Value 13877.2
## 100 2004-01-01 Value 13786.3
## 101 2003-10-01 Value 13698.1
## 102 2003-07-01 Value 13610.9
## 103 2003-04-01 Value 13523.8
## 104 2003-01-01 Value 13436.7
## 105 2002-10-01 Value 13348.6
## 106 2002-07-01 Value 13261.4
## 107 2002-04-01 Value 13172.7
## 108 2002-01-01 Value 13081.6
## 109 2001-10-01 Value 12986.7
## 110 2001-07-01 Value 12886.7
## 111 2001-04-01 Value 12782.6
## 112 2001-01-01 Value 12674.2
## 113 2000-10-01 Value 12559.7
## 114 2000-07-01 Value 12439.6
## 115 2000-04-01 Value 12316.7
## 116 2000-01-01 Value 12191.9
## 117 1999-10-01 Value 12067.6
## 118 1999-07-01 Value 11943.0
## 119 1999-04-01 Value 11819.1
## 120 1999-01-01 Value 11696.4
## 121 1998-10-01 Value 11577.2
## 122 1998-07-01 Value 11459.2
## 123 1998-04-01 Value 11343.6
## 124 1998-01-01 Value 11231.0
## 125 1997-10-01 Value 11121.8
## 126 1997-07-01 Value 11016.2
## 127 1997-04-01 Value 10914.6
## 128 1997-01-01 Value 10817.5
## 129 1996-10-01 Value 10726.1
## 130 1996-07-01 Value 10640.8
## 131 1996-04-01 Value 10560.0
## 132 1996-01-01 Value 10483.1
## 133 1995-10-01 Value 10409.8
## 134 1995-07-01 Value 10339.7
## 135 1995-04-01 Value 10272.0
## 136 1995-01-01 Value 10206.0
## 137 1994-10-01 Value 10139.9
## 138 1994-07-01 Value 10074.5
## 139 1994-04-01 Value 10010.1
## 140 1994-01-01 Value 9946.5
## 141 1993-10-01 Value 9883.5
## 142 1993-07-01 Value 9821.6
## 143 1993-04-01 Value 9760.5
## 144 1993-01-01 Value 9700.3
## 145 1992-10-01 Value 9641.1
## 146 1992-07-01 Value 9583.2
## 147 1992-04-01 Value 9525.9
## 148 1992-01-01 Value 9468.7
## 149 1991-10-01 Value 9411.1
## 150 1991-07-01 Value 9353.5
## 151 1991-04-01 Value 9295.2
## 152 1991-01-01 Value 9235.9
## 153 1990-10-01 Value 9174.7
## 154 1990-07-01 Value 9111.6
## 155 1990-04-01 Value 9047.1
## 156 1990-01-01 Value 8981.4
## 157 1989-10-01 Value 8914.3
## 158 1989-07-01 Value 8846.2
## 159 1989-04-01 Value 8777.3
## 160 1989-01-01 Value 8708.0
## 161 1988-10-01 Value 8639.0
## 162 1988-07-01 Value 8569.8
## 163 1988-04-01 Value 8500.5
## 164 1988-01-01 Value 8431.1
## 165 1987-10-01 Value 8361.7
## 166 1987-07-01 Value 8292.4
## 167 1987-04-01 Value 8223.0
## 168 1987-01-01 Value 8153.4
## 169 1986-10-01 Value 8083.6
## 170 1986-07-01 Value 8013.3
## 171 1986-04-01 Value 7942.9
## 172 1986-01-01 Value 7872.2
## 173 1985-10-01 Value 7801.2
## 174 1985-07-01 Value 7729.1
## 175 1985-04-01 Value 7657.4
## 176 1985-01-01 Value 7586.3
## 177 1984-10-01 Value 7516.4
## 178 1984-07-01 Value 7448.4
## 179 1984-04-01 Value 7381.9
## 180 1984-01-01 Value 7317.2
## 181 1983-10-01 Value 7255.3
## 182 1983-07-01 Value 7195.7
## 183 1983-04-01 Value 7137.4
## 184 1983-01-01 Value 7080.0
## 185 1982-10-01 Value 7022.4
## 186 1982-07-01 Value 6962.5
## 187 1982-04-01 Value 6903.4
## 188 1982-01-01 Value 6846.1
## 189 1981-10-01 Value 6790.7
## 190 1981-07-01 Value 6742.1
## 191 1981-04-01 Value 6696.7
## 192 1981-01-01 Value 6654.6
## 193 1980-10-01 Value 6618.0
## 194 1980-07-01 Value 6583.7
## 195 1980-04-01 Value 6549.6
## 196 1980-01-01 Value 6514.2
## 197 1979-10-01 Value 6472.9
## 198 1979-07-01 Value 6427.0
## 199 1979-04-01 Value 6378.5
## 200 1979-01-01 Value 6327.9
## 201 1978-10-01 Value 6275.0
## 202 1978-07-01 Value 6221.1
## 203 1978-04-01 Value 6166.8
## 204 1978-01-01 Value 6112.9
## 205 1977-10-01 Value 6061.7
## 206 1977-07-01 Value 6011.6
## 207 1977-04-01 Value 5962.6
## 208 1977-01-01 Value 5914.5
## 209 1976-10-01 Value 5867.5
## 210 1976-07-01 Value 5822.2
## 211 1976-04-01 Value 5777.4
## 212 1976-01-01 Value 5732.8
## 213 1975-10-01 Value 5687.8
## 214 1975-07-01 Value 5641.5
## 215 1975-04-01 Value 5594.6
## 216 1975-01-01 Value 5547.0
## 217 1974-10-01 Value 5497.7
## 218 1974-07-01 Value 5447.1
## 219 1974-04-01 Value 5396.5
## 220 1974-01-01 Value 5346.5
## 221 1973-10-01 Value 5298.4
## 222 1973-07-01 Value 5252.5
## 223 1973-04-01 Value 5208.1
## 224 1973-01-01 Value 5165.6
## 225 1972-10-01 Value 5125.7
## 226 1972-07-01 Value 5087.7
## 227 1972-04-01 Value 5051.1
## 228 1972-01-01 Value 5015.6
## 229 1971-10-01 Value 4980.2
## 230 1971-07-01 Value 4946.1
## 231 1971-04-01 Value 4912.3
## 232 1971-01-01 Value 4878.4
## 233 1970-10-01 Value 4843.8
## 234 1970-07-01 Value 4809.1
## 235 1970-04-01 Value 4773.2
## 236 1970-01-01 Value 4735.7
## 237 1969-10-01 Value 4695.4
## 238 1969-07-01 Value 4651.4
## 239 1969-04-01 Value 4605.4
## 240 1969-01-01 Value 4557.6
## 241 1968-10-01 Value 4507.7
## 242 1968-07-01 Value 4457.0
## 243 1968-04-01 Value 4405.7
## 244 1968-01-01 Value 4354.2
## 245 1967-10-01 Value 4304.4
## 246 1967-07-01 Value 4254.2
## 247 1967-04-01 Value 4204.3
## 248 1967-01-01 Value 4154.9
## 249 1966-10-01 Value 4105.8
## 250 1966-07-01 Value 4057.8
## 251 1966-04-01 Value 4010.7
## 252 1966-01-01 Value 3964.7
## 253 1965-10-01 Value 3920.4
## 254 1965-07-01 Value 3877.4
## 255 1965-04-01 Value 3835.3
## 256 1965-01-01 Value 3794.3
## 257 1964-10-01 Value 3754.0
## 258 1964-07-01 Value 3714.8
## 259 1964-04-01 Value 3676.4
## 260 1964-01-01 Value 3638.6
## 261 1963-10-01 Value 3601.2
## 262 1963-07-01 Value 3563.8
## 263 1963-04-01 Value 3526.8
## 264 1963-01-01 Value 3490.3
## 265 1962-10-01 Value 3454.0
## 266 1962-07-01 Value 3418.6
## 267 1962-04-01 Value 3383.8
## 268 1962-01-01 Value 3349.7
## 269 1961-10-01 Value 3316.6
## 270 1961-07-01 Value 3283.9
## 271 1961-04-01 Value 3251.7
## 272 1961-01-01 Value 3219.9
## 273 1960-10-01 Value 3188.2
## 274 1960-07-01 Value 3156.8
## 275 1960-04-01 Value 3126.0
## 276 1960-01-01 Value 3095.7
## 277 1959-10-01 Value 3066.1
## 278 1959-07-01 Value 3037.4
## 279 1959-04-01 Value 3009.2
## 280 1959-01-01 Value 2981.5
## 281 1958-10-01 Value 2954.1
## 282 1958-07-01 Value 2926.2
## 283 1958-04-01 Value 2898.8
## 284 1958-01-01 Value 2871.9
## 285 1957-10-01 Value 2845.5
## 286 1957-07-01 Value 2820.5
## 287 1957-04-01 Value 2796.7
## 288 1957-01-01 Value 2774.0
## 289 1956-10-01 Value 2753.4
## 290 1956-07-01 Value 2734.1
## 291 1956-04-01 Value 2715.9
## 292 1956-01-01 Value 2698.4
## 293 1955-10-01 Value 2681.1
## 294 1955-07-01 Value 2664.5
## 295 1955-04-01 Value 2648.3
## 296 1955-01-01 Value 2632.4
## 297 1954-10-01 Value 2616.5
## 298 1954-07-01 Value 2601.6
## 299 1954-04-01 Value 2586.4
## 300 1954-01-01 Value 2570.3
## 301 1953-10-01 Value 2552.7
## 302 1953-07-01 Value 2532.9
## 303 1953-04-01 Value 2511.2
## 304 1953-01-01 Value 2487.3
## 305 1952-10-01 Value 2460.0
## 306 1952-07-01 Value 2429.6
## 307 1952-04-01 Value 2397.6
## 308 1952-01-01 Value 2364.4
## 309 1951-10-01 Value 2331.0
## 310 1951-07-01 Value 2297.2
## 311 1951-04-01 Value 2263.5
## 312 1951-01-01 Value 2230.3
## 313 1950-10-01 Value 2199.0
## 314 1950-07-01 Value 2168.9
## 315 1950-04-01 Value 2139.7
## 316 1950-01-01 Value 2111.3
## 317 1949-10-01 Value 2083.9
## 318 1949-07-01 Value 2057.1
## 319 1949-04-01 Value 2030.9
## 320 1949-01-01 Value 2005.2
## 321 2028-10-01 unemployment 4.55
## 322 2028-07-01 unemployment 4.55
## 323 2028-04-01 unemployment 4.56
## 324 2028-01-01 unemployment 4.56
## 325 2027-10-01 unemployment 4.56
## 326 2027-07-01 unemployment 4.56
## 327 2027-04-01 unemployment 4.56
## 328 2027-01-01 unemployment 4.56
## 329 2026-10-01 unemployment 4.57
## 330 2026-07-01 unemployment 4.57
## 331 2026-04-01 unemployment 4.57
## 332 2026-01-01 unemployment 4.57
## 333 2025-10-01 unemployment 4.57
## 334 2025-07-01 unemployment 4.57
## 335 2025-04-01 unemployment 4.57
## 336 2025-01-01 unemployment 4.58
## 337 2024-10-01 unemployment 4.58
## 338 2024-07-01 unemployment 4.58
## 339 2024-04-01 unemployment 4.58
## 340 2024-01-01 unemployment 4.58
## 341 2023-10-01 unemployment 4.58
## 342 2023-07-01 unemployment 4.59
## 343 2023-04-01 unemployment 4.59
## 344 2023-01-01 unemployment 4.59
## 345 2022-10-01 unemployment 4.59
## 346 2022-07-01 unemployment 4.59
## 347 2022-04-01 unemployment 4.59
## 348 2022-01-01 unemployment 4.59
## 349 2021-10-01 unemployment 4.6
## 350 2021-07-01 unemployment 4.6
## 351 2021-04-01 unemployment 4.6
## 352 2021-01-01 unemployment 4.6
## 353 2020-10-01 unemployment 4.6
## 354 2020-07-01 unemployment 4.6
## 355 2020-04-01 unemployment 4.61
## 356 2020-01-01 unemployment 4.61
## 357 2019-10-01 unemployment 4.61
## 358 2019-07-01 unemployment 4.61
## 359 2019-04-01 unemployment 4.61
## 360 2019-01-01 unemployment 4.61
## 361 2018-10-01 unemployment 4.61
## 362 2018-07-01 unemployment 4.62
## 363 2018-04-01 unemployment 4.62
## 364 2018-01-01 unemployment 4.62
## 365 2017-10-01 unemployment 4.62
## 366 2017-07-01 unemployment 4.62
## 367 2017-04-01 unemployment 4.63
## 368 2017-01-01 unemployment 4.62
## 369 2016-10-01 unemployment 4.62
## 370 2016-07-01 unemployment 4.62
## 371 2016-04-01 unemployment 4.62
## 372 2016-01-01 unemployment 4.63
## 373 2015-10-01 unemployment 4.64
## 374 2015-07-01 unemployment 4.66
## 375 2015-04-01 unemployment 4.69
## 376 2015-01-01 unemployment 4.72
## 377 2014-10-01 unemployment 4.76
## 378 2014-07-01 unemployment 4.8
## 379 2014-04-01 unemployment 4.83
## 380 2014-01-01 unemployment 4.86
## 381 2013-10-01 unemployment 4.89
## 382 2013-07-01 unemployment 4.91
## 383 2013-04-01 unemployment 4.94
## 384 2013-01-01 unemployment 4.97
## 385 2012-10-01 unemployment 4.99
## 386 2012-07-01 unemployment 5.02
## 387 2012-04-01 unemployment 5.05
## 388 2012-01-01 unemployment 5.07
## 389 2011-10-01 unemployment 5.08
## 390 2011-07-01 unemployment 5.08
## 391 2011-04-01 unemployment 5.08
## 392 2011-01-01 unemployment 5.08
## 393 2010-10-01 unemployment 5.07
## 394 2010-07-01 unemployment 5.05
## 395 2010-04-01 unemployment 5.03
## 396 2010-01-01 unemployment 5.01
## 397 2009-10-01 unemployment 4.98
## 398 2009-07-01 unemployment 4.95
## 399 2009-04-01 unemployment 4.92
## 400 2009-01-01 unemployment 4.9
## 401 2008-10-01 unemployment 4.88
## 402 2008-07-01 unemployment 4.87
## 403 2008-04-01 unemployment 4.88
## 404 2008-01-01 unemployment 4.89
## 405 2007-10-01 unemployment 4.9
## 406 2007-07-01 unemployment 4.92
## 407 2007-04-01 unemployment 4.93
## 408 2007-01-01 unemployment 4.95
## 409 2006-10-01 unemployment 4.97
## 410 2006-07-01 unemployment 4.98
## 411 2006-04-01 unemployment 4.99
## 412 2006-01-01 unemployment 4.99
## 413 2005-10-01 unemployment 5
## 414 2005-07-01 unemployment 5
## 415 2005-04-01 unemployment 5.01
## 416 2005-01-01 unemployment 5.02
## 417 2004-10-01 unemployment 5.03
## 418 2004-07-01 unemployment 5.04
## 419 2004-04-01 unemployment 5.05
## 420 2004-01-01 unemployment 5.06
## 421 2003-10-01 unemployment 5.07
## 422 2003-07-01 unemployment 5.08
## 423 2003-04-01 unemployment 5.09
## 424 2003-01-01 unemployment 5.1
## 425 2002-10-01 unemployment 5.11
## 426 2002-07-01 unemployment 5.12
## 427 2002-04-01 unemployment 5.13
## 428 2002-01-01 unemployment 5.14
## 429 2001-10-01 unemployment 5.15
## 430 2001-07-01 unemployment 5.16
## 431 2001-04-01 unemployment 5.17
## 432 2001-01-01 unemployment 5.18
## 433 2000-10-01 unemployment 5.19
## 434 2000-07-01 unemployment 5.2
## 435 2000-04-01 unemployment 5.21
## 436 2000-01-01 unemployment 5.22
## 437 1999-10-01 unemployment 5.24
## 438 1999-07-01 unemployment 5.25
## 439 1999-04-01 unemployment 5.26
## 440 1999-01-01 unemployment 5.27
## 441 1998-10-01 unemployment 5.28
## 442 1998-07-01 unemployment 5.29
## 443 1998-04-01 unemployment 5.29
## 444 1998-01-01 unemployment 5.3
## 445 1997-10-01 unemployment 5.31
## 446 1997-07-01 unemployment 5.32
## 447 1997-04-01 unemployment 5.33
## 448 1997-01-01 unemployment 5.34
## 449 1996-10-01 unemployment 5.35
## 450 1996-07-01 unemployment 5.36
## 451 1996-04-01 unemployment 5.37
## 452 1996-01-01 unemployment 5.38
## 453 1995-10-01 unemployment 5.39
## 454 1995-07-01 unemployment 5.4
## 455 1995-04-01 unemployment 5.41
## 456 1995-01-01 unemployment 5.42
## 457 1994-10-01 unemployment 5.43
## 458 1994-07-01 unemployment 5.44
## 459 1994-04-01 unemployment 5.45
## 460 1994-01-01 unemployment 5.47
## 461 1993-10-01 unemployment 5.48
## 462 1993-07-01 unemployment 5.49
## 463 1993-04-01 unemployment 5.51
## 464 1993-01-01 unemployment 5.52
## 465 1992-10-01 unemployment 5.54
## 466 1992-07-01 unemployment 5.55
## 467 1992-04-01 unemployment 5.57
## 468 1992-01-01 unemployment 5.59
## 469 1991-10-01 unemployment 5.6
## 470 1991-07-01 unemployment 5.62
## 471 1991-04-01 unemployment 5.64
## 472 1991-01-01 unemployment 5.66
## 473 1990-10-01 unemployment 5.67
## 474 1990-07-01 unemployment 5.69
## 475 1990-04-01 unemployment 5.71
## 476 1990-01-01 unemployment 5.73
## 477 1989-10-01 unemployment 5.75
## 478 1989-07-01 unemployment 5.77
## 479 1989-04-01 unemployment 5.79
## 480 1989-01-01 unemployment 5.81
## 481 1988-10-01 unemployment 5.83
## 482 1988-07-01 unemployment 5.85
## 483 1988-04-01 unemployment 5.87
## 484 1988-01-01 unemployment 5.89
## 485 1987-10-01 unemployment 5.9
## 486 1987-07-01 unemployment 5.92
## 487 1987-04-01 unemployment 5.93
## 488 1987-01-01 unemployment 5.95
## 489 1986-10-01 unemployment 5.96
## 490 1986-07-01 unemployment 5.97
## 491 1986-04-01 unemployment 5.99
## 492 1986-01-01 unemployment 6
## 493 1985-10-01 unemployment 6.01
## 494 1985-07-01 unemployment 6.02
## 495 1985-04-01 unemployment 6.03
## 496 1985-01-01 unemployment 6.04
## 497 1984-10-01 unemployment 6.05
## 498 1984-07-01 unemployment 6.06
## 499 1984-04-01 unemployment 6.07
## 500 1984-01-01 unemployment 6.08
## 501 1983-10-01 unemployment 6.09
## 502 1983-07-01 unemployment 6.09
## 503 1983-04-01 unemployment 6.1
## 504 1983-01-01 unemployment 6.11
## 505 1982-10-01 unemployment 6.12
## 506 1982-07-01 unemployment 6.13
## 507 1982-04-01 unemployment 6.14
## 508 1982-01-01 unemployment 6.15
## 509 1981-10-01 unemployment 6.16
## 510 1981-07-01 unemployment 6.17
## 511 1981-04-01 unemployment 6.18
## 512 1981-01-01 unemployment 6.19
## 513 1980-10-01 unemployment 6.2
## 514 1980-07-01 unemployment 6.2
## 515 1980-04-01 unemployment 6.21
## 516 1980-01-01 unemployment 6.22
## 517 1979-10-01 unemployment 6.22
## 518 1979-07-01 unemployment 6.23
## 519 1979-04-01 unemployment 6.23
## 520 1979-01-01 unemployment 6.24
## 521 1978-10-01 unemployment 6.24
## 522 1978-07-01 unemployment 6.24
## 523 1978-04-01 unemployment 6.24
## 524 1978-01-01 unemployment 6.24
## 525 1977-10-01 unemployment 6.24
## 526 1977-07-01 unemployment 6.24
## 527 1977-04-01 unemployment 6.23
## 528 1977-01-01 unemployment 6.23
## 529 1976-10-01 unemployment 6.22
## 530 1976-07-01 unemployment 6.22
## 531 1976-04-01 unemployment 6.21
## 532 1976-01-01 unemployment 6.2
## 533 1975-10-01 unemployment 6.2
## 534 1975-07-01 unemployment 6.19
## 535 1975-04-01 unemployment 6.18
## 536 1975-01-01 unemployment 6.17
## 537 1974-10-01 unemployment 6.16
## 538 1974-07-01 unemployment 6.15
## 539 1974-04-01 unemployment 6.14
## 540 1974-01-01 unemployment 6.13
## 541 1973-10-01 unemployment 6.11
## 542 1973-07-01 unemployment 6.1
## 543 1973-04-01 unemployment 6.09
## 544 1973-01-01 unemployment 6.07
## 545 1972-10-01 unemployment 6.06
## 546 1972-07-01 unemployment 6.04
## 547 1972-04-01 unemployment 6.03
## 548 1972-01-01 unemployment 6.01
## 549 1971-10-01 unemployment 5.99
## 550 1971-07-01 unemployment 5.98
## 551 1971-04-01 unemployment 5.96
## 552 1971-01-01 unemployment 5.95
## 553 1970-10-01 unemployment 5.93
## 554 1970-07-01 unemployment 5.92
## 555 1970-04-01 unemployment 5.9
## 556 1970-01-01 unemployment 5.89
## 557 1969-10-01 unemployment 5.88
## 558 1969-07-01 unemployment 5.86
## 559 1969-04-01 unemployment 5.85
## 560 1969-01-01 unemployment 5.84
## 561 1968-10-01 unemployment 5.83
## 562 1968-07-01 unemployment 5.82
## 563 1968-04-01 unemployment 5.8
## 564 1968-01-01 unemployment 5.79
## 565 1967-10-01 unemployment 5.78
## 566 1967-07-01 unemployment 5.77
## 567 1967-04-01 unemployment 5.76
## 568 1967-01-01 unemployment 5.75
## 569 1966-10-01 unemployment 5.73
## 570 1966-07-01 unemployment 5.72
## 571 1966-04-01 unemployment 5.71
## 572 1966-01-01 unemployment 5.7
## 573 1965-10-01 unemployment 5.69
## 574 1965-07-01 unemployment 5.67
## 575 1965-04-01 unemployment 5.66
## 576 1965-01-01 unemployment 5.65
## 577 1964-10-01 unemployment 5.63
## 578 1964-07-01 unemployment 5.62
## 579 1964-04-01 unemployment 5.61
## 580 1964-01-01 unemployment 5.6
## 581 1963-10-01 unemployment 5.58
## 582 1963-07-01 unemployment 5.57
## 583 1963-04-01 unemployment 5.56
## 584 1963-01-01 unemployment 5.55
## 585 1962-10-01 unemployment 5.54
## 586 1962-07-01 unemployment 5.53
## 587 1962-04-01 unemployment 5.52
## 588 1962-01-01 unemployment 5.51
## 589 1961-10-01 unemployment 5.51
## 590 1961-07-01 unemployment 5.5
## 591 1961-04-01 unemployment 5.49
## 592 1961-01-01 unemployment 5.48
## 593 1960-10-01 unemployment 5.48
## 594 1960-07-01 unemployment 5.47
## 595 1960-04-01 unemployment 5.46
## 596 1960-01-01 unemployment 5.46
## 597 1959-10-01 unemployment 5.45
## 598 1959-07-01 unemployment 5.44
## 599 1959-04-01 unemployment 5.44
## 600 1959-01-01 unemployment 5.43
## 601 1958-10-01 unemployment 5.43
## 602 1958-07-01 unemployment 5.42
## 603 1958-04-01 unemployment 5.42
## 604 1958-01-01 unemployment 5.41
## 605 1957-10-01 unemployment 5.41
## 606 1957-07-01 unemployment 5.41
## 607 1957-04-01 unemployment 5.4
## 608 1957-01-01 unemployment 5.4
## 609 1956-10-01 unemployment 5.4
## 610 1956-07-01 unemployment 5.4
## 611 1956-04-01 unemployment 5.39
## 612 1956-01-01 unemployment 5.39
## 613 1955-10-01 unemployment 5.39
## 614 1955-07-01 unemployment 5.39
## 615 1955-04-01 unemployment 5.38
## 616 1955-01-01 unemployment 5.38
## 617 1954-10-01 unemployment 5.38
## 618 1954-07-01 unemployment 5.38
## 619 1954-04-01 unemployment 5.37
## 620 1954-01-01 unemployment 5.37
## 621 1953-10-01 unemployment 5.37
## 622 1953-07-01 unemployment 5.36
## 623 1953-04-01 unemployment 5.36
## 624 1953-01-01 unemployment 5.35
## 625 1952-10-01 unemployment 5.35
## 626 1952-07-01 unemployment 5.34
## 627 1952-04-01 unemployment 5.34
## 628 1952-01-01 unemployment 5.33
## 629 1951-10-01 unemployment 5.33
## 630 1951-07-01 unemployment 5.32
## 631 1951-04-01 unemployment 5.31
## 632 1951-01-01 unemployment 5.31
## 633 1950-10-01 unemployment 5.3
## 634 1950-07-01 unemployment 5.29
## 635 1950-04-01 unemployment 5.29
## 636 1950-01-01 unemployment 5.28
## 637 1949-10-01 unemployment 5.27
## 638 1949-07-01 unemployment 5.27
## 639 1949-04-01 unemployment 5.26
## 640 1949-01-01 unemployment 5.26
To verify that both wide and long data are the same:
Headdf <- head(df)
longHeaddf <- gather(Headdf,unemployment,Value, -Date)
## Warning: attributes are not identical across measure variables;
## they will be dropped
longHeaddf
## Date unemployment Value
## 1 2028-10-01 Value 21329.9
## 2 2028-07-01 Value 21237.2
## 3 2028-04-01 Value 21144.6
## 4 2028-01-01 Value 21052.4
## 5 2027-10-01 Value 20960.9
## 6 2027-07-01 Value 20870.3
## 7 2028-10-01 unemployment 4.55
## 8 2028-07-01 unemployment 4.55
## 9 2028-04-01 unemployment 4.56
## 10 2028-01-01 unemployment 4.56
## 11 2027-10-01 unemployment 4.56
## 12 2027-07-01 unemployment 4.56
Headdf
## Date Value unemployment
## 1 2028-10-01 21329.9 4.55
## 2 2028-07-01 21237.2 4.55
## 3 2028-04-01 21144.6 4.56
## 4 2028-01-01 21052.4 4.56
## 5 2027-10-01 20960.9 4.56
## 6 2027-07-01 20870.3 4.56