knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of gsovn is to scrape dataset from gso.gov.vn (Vietnam General statistic organization)
You can install the development version of gsovn from GitHub with:
# install.packages("devtools") devtools::install_github("vohai611/gsovn")
Add option to download csv
use {{crul}}
to send asynch request in the case download multiple dataset
You can check what dataset is now on gso.gov.vn
library(gsovn) df = gso_avail() head(df)
To get the data set you want, use gso_read(url)
.
df$link[2] |> gso_read()
This function call rvest::html_table()
to parse html to tibble, therefore the result might be slow. I will add the option to download csv file in the future
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.