The sss package provides functions to import triple-s XML files into
R. The package supports sss files in both .asc and .csv format.
You can install the released version of sss from CRAN using:
install.packages("sss")And the development version from GitHub with:
# install.packages("remotes")
remotes::install_github("andrie/sss")A previous version of this package imported the XML package, but from
version 0.1 the package imports xml2. The xml2 package depends on
the libxml2 library. If you run your code on linux, you may have to
manually install libxml2:
libxml2-dev(Debian, Ubuntu)libxml2-devel(Red Hat, CentOS, Fedora)
triple-s is a standard to transfer survey data between applications.
This is a basic example which shows you how to solve a common problem:
library(sss)
## basic example code