Skip to content
/ SuSoAPI Public
forked from l2nguyen/SuSoAPI

Toolkit in R to make it easier to use the Survey Solutions API

Notifications You must be signed in to change notification settings

V-B/SuSoAPI

 
 

Repository files navigation

Survey Solutions API

Wrapper functions for Survey Solutions API.

Description of functions currently available:

Getting Started

Prerequisites

These programs uses R to interact with the Survey Solutions API so you will need to install R and R Studio on your computer.

You will also need to make an API user account on your survey server. Learn how to make an API user account on the support page.

How to use?

Download the the repository by clicking on the green Clone or download button on the right side under the respository name and selecting Download Zip. This will download all the code and read me files onto your computer in a zip file.

You can use the functions in one of three ways:

  1. Run the R file for the function in R Studio by opening it and pressing Ctrl+Shift+Enter. This will run all the code for the function in the file and now the function will be in the working environment for use in the working environment.
  2. In the menu, go to Code -> Source File... or use the Ctrl+Alt+G keyboard shortcut. Select the function you would like to use and now it will be available for use in the working environment.
  3. To load the function at the beginning of your code, use the source function.

Server Details

If you are using the functions to download the same type of data from the same server, you should make a serverDetails.R file to save time. Fill in this template with details on your server and login for the API user.

Running R code in Stata

It is possible to call R code in Stata using the rcall package. Installation information is available on the package's github.

This package allows R and Stata to interact and exchange data so it is possible to use these API functions in Stata with rcall. However, this will require writing a script in R to download the data from the API. Use it only after reading the documentation for rcall thoroughly.

About

Toolkit in R to make it easier to use the Survey Solutions API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%