๐ง๏ธ๐ก๏ธ๐๐ถ๐๐ง๐ท๐งฎ๐๐พ๐ฑ๐๐ฝ๐๐ณ๐งโ๏ธ๐ฆ๏ธ๐
gsdata
is an R package designed to facilitate the documentation and
sharing of data from Sustentareaโs Global Syndemic Project. See the
package website for more
information.
You can install gsdata
using the
remotes
package:
remotes::install_github("sustentarea/gsdata")
The package provides a preview and documentation for each dataset. You can find a list of available datasets here.
To download them, use the function get_data()
. For example, to get the
gini
dataset use:
get_data("gini")
The raw data files can be downloaded using the get_raw_data()
function.
get_raw_data("gini", file = "gini.csv")
If you need to convert the data to a different format, you can use the following packages:
readr
for writing data tocsv
files.readxl
for writing data toxlsx
(Excel) files.haven
for writing data todta
(Stata),sav
(SPSS), andsas
(SAS) files.
gsdata
code is released under the MIT
license.