-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
library(fpp3) | ||
|
||
# Data download from????? | ||
# Data from | ||
# https://www.abs.gov.au/statistics/economy/national-accounts/australian-national-accounts-national-income-expenditure-and-product/mar-2024 | ||
# We downloaded the data files for each state separately | ||
# (For example "Table 27. State Final Demand, Detailed Components: Victoria" | ||
# for Victoria), and merged the respective cigarettes and tobacco expenditure | ||
# data into a single data set. | ||
|
||
aus_cigtob <- readxl::read_xlsx(path ="data-raw/Exams/AUS_CigTob_Exp/CigTob_Updated.xlsx") |> | ||
aus_tobacco <- readxl::read_xlsx(path ="data-raw/Exams/AUS_CigTob_Exp/CigTob_Updated.xlsx") |> | ||
mutate(Quarter = yearquarter(Quarter)) |> | ||
pivot_longer(VIC:ACT, names_to = "State", values_to = "Expenditure") |> | ||
mutate(Expenditure = Expenditure / 1e3) |> | ||
as_tsibble(index = Quarter, key = State) | ||
|
||
#aus_cigtob |> autoplot(Expenditure) + scale_y_log10() | ||
usethis::use_data(aus_cigtob, overwrite=TRUE) | ||
#aus_tobacco |> autoplot(Expenditure) + scale_y_log10() | ||
usethis::use_data(aus_tobacco, overwrite=TRUE) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.