GetAnswers: Export data from your CC dashboard

Description Usage Arguments Details Value Examples

View source: R/GetAnswers.R

Description

This function allows you to export data by specifying what question Ids you want to export

Usage

1
2
3
GetAnswers(Username, Password, RequiredQidsVect, AfterDate, BeforeDate,
  MaxSampleSize = 0, Randomize = FALSE, ReturnIntersectedSet = FALSE,
  Questionnaires = NULL)

Arguments

Username

your CC username

Password

your CC password

RequiredQidsVect

a vector of strings specifying what all qids you want to export

AfterDate

String of start date in format - "YYYY-MM-DD"

BeforeDate

String of end date in format - "YYYY-MM-DD"

MaxSampleSize

specifies what is the maximum sample set you wish to export, by default returns all data

Randomize

true if you wish to randomize the data in the given time range and then export. by default set to False

ReturnIntersectedSet

set to true if you want to pull the data with an intersection (i.e., AND condition) between the Question ID's specified

Questionnaires

this is a vector of questionnaires from which you would want to pull data

Details

Install the following packages- httr, jsonlite before you use this. Performance depends on how much data is present in the specified time frame.

Value

R DataFrame with CC data

Examples

1
GetAnswers("username", "password", c("59df48ea81180318b06d0199", "59df48ea81180318b06d019a"), "2018-01-14", "2018-05-15", 2000, TRUE, TRUE, c("Q1"))

getcloudcherry/cloudcherry-r-sdk documentation built on Oct. 15, 2019, 4:36 p.m.