You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mutate(indicator = "Census 2021 population estimates: all usual residents") %>%
write_csv("data_example.csv")
# Now convert the same data to JSON format
df_json <- df %>%
toJSON(pretty = TRUE) %>%
cat(file = "data_example.json") # using cat to save the output rather than write_json as this results in a nicer formatted file (write_json inserts "\n" rather than newline characters)