ctoimport: Fetching Data from SurveyCTO server using API.

ctoimportR Documentation

Fetching Data from SurveyCTO server using API.

Description

The function fetch data from surveycto server using formid, which is a form identifier. It imports data in .csv format, without repeat group data.

Usage

ctoimport(
  servername,
  formid,
  username,
  password,
  dataName = NULL,
  language = ""
)

Arguments

servername

SurveyCTO servername

formid

Get this from Setting sheet in the XLSForm workbook or in the form definition in the server.

username

SurveyCTO username, without including the .survecto.com

password

SurveyCTO password, it is encouraged not to put the password in a plain text in your script. Employ it in

dataName

Name of the data to be stored in R memory, default is data.

language

This determines that labels language to be used to label the data.

Examples

 ## NOT RUN
 ctoimport(Sys.getenv("servername"),'VAVS_CRF_03',Sys.getenv("username"),Sys.getenv("password"))

Waiguru254/surveycto documentation built on July 4, 2024, 11:30 a.m.