Learn R Programming

qualtRics (version 3.2.1)

Download 'Qualtrics' Survey Data

Description

Provides functions to access survey results directly into R using the 'Qualtrics' API. 'Qualtrics' is an online survey and data collection software platform. See for more information about the 'Qualtrics' API. This package is community-maintained and is not officially supported by 'Qualtrics'.

Copy Link

Version

Install

install.packages('qualtRics')

Monthly Downloads

3,316

Version

3.2.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

August 16th, 2024

Functions in qualtRics (3.2.1)

construct_header

Construct a header to send to Qualtrics API
checkarg_limit

Check limit for being integer >= 1:
create_raw_payload

Create properly-formatted JSON payload for API calls. Removes NULLS
column_map

Retrieve a data frame containing survey column mapping
fetch_distribution_history

Download distribution history data for a distribution from Qualtrics
fetch_distributions

Download distribution data for a survey from Qualtrics
checkarg_include_questions

Check that include_questions uses the QID format, and format for API call:
fetch_description

Download complete survey description using the Qualtrics v3 "Get Survey" API endpoint.
extract_colmap

Extract column map from survey data download
infer_data_types

Set proper data types on survey data.
export_responses_filedownload

Downloads response data from location obtained from fetch_survey_progress (extracting from .zip file)
list_distribution_links

Download distribution links for a distribution from Qualtrics
checkarg_include_metadata

Check that include_metadata has the right elements & format for API call
checkarg_tempdir

Check if the temporary directory exists:
export_responses_init

Initiate a request to the export-responses API endpoint
fetch_id

Fetch a unique Qualtrics survey ID based on survey name in the Qualtrics UI
export_responses_progress

Monitor progress from response request download, then obtain file download location
qualtrics_response_codes

Checks responses against Qualtrics response codes and returns error message.
wrapper_mc

Convert multiple choice questions to ordered factors
qualtrics_api_request

Send httr requests to Qualtrics API
export_responses_request

Runs 3-part request to export-responses endpoint, downloading and unzipping file
survey_questions

Retrieve a data frame containing question IDs and labels
fetch_mailinglist

Download a mailing list from Qualtrics
read_survey

Read a CSV file exported from Qualtrics
fetch_survey

Download a survey and import it into R
metadata

Download metadata for a survey
generate_url

Generate URL for specific API query by type and (if appropriate) ID
qualtrics_api_credentials

Install Qualtrics credentials in your .Renviron file for repeated use
checkarg_elements

Check if elements given in fetch_description are properly specified
all_surveys

Retrieve a data frame of all active surveys on Qualtrics
all_mailinglists

Retrieve a data frame of all mailing lists from Qualtrics
checkarg_time_zone

Checks time zone, setting default if needed:
checkarg_isintegerish

Is integerish (length-1 numeric w/o any fractional component)
checkarg_base_url

Checking and re-formatting base_url:
checkarg_col_types

col_types must be a col_spec object from readr
checkarg_isstring

Is string (length-1 character)
checkarg_get

Check if elements given in metadata's 'get' are properly specified
checkarg_datetime

Title Check date-time-like inputs and convert them to ISO8601 (with time zone)
checkarg_convert_label_breakouts

Check conditions around combinations of convert, label, and breakout_sets
checkarg_include_embedded

Check include_embedded and format for API call:
check_credentials

General check that credentials are present
check_existing_download

Check if downloaded file already exists
checkarg_fetch_id_data

Check if data for fetch_id() is correct
check_for_warnings

Check if httr GET result contains a warning
checkarg_file_name

Check if survey file specified in file_name exists
checkarg_isboolean

Is boolean (length-1 logical)
checkarg_ischaracter

Is character vector with no missing values: