Table 1.1.2. Contributions to Percent Change in Real Gross Domestic Product (A) (Q) - T10102

Data - BEA

Last observation: Q2 2022 (N = 26) · 2021 (N = 26)

First observation: 1930 (N = 26) · Q2 1947 (N = 26)

Last data update: 25 juil. 2026, 12:36

Last compile: 05 sept. 2026, 22:42

Layout

  • NIPA Website. html

Ex 2: 1938, 1958, 1978, 1998, 2018 Table

Code
T10102_A |>
  year_to_date() |>
  mutate(year = year(date)) |>
  filter(year %in% c(1938, 1958, 1978, 1998, 2018)) |>
  group_by(year) |>
  mutate(value = round(DataValue, 2)) |>
  ungroup() |>
  select(2, 3, 6, 7) |>
  spread(year, value) %>%
  {if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}