qualtRics
qualtRics: retrieve survey data using the Qualtrics API - Published in JOSS (2018)
Science Score: 95.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 4 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: joss.theoj.org, zenodo.org -
✓Committers with academic emails
3 of 24 committers (12.5%) from academic institutions -
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Keywords
api
qualtrics
qualtrics-api
r
r-package
rstats
survey
survey-data
Keywords from Contributors
tidy-data
tidyverse
standardization
Last synced: 6 months ago
·
JSON representation
Repository
Download ⬇️ Qualtrics survey data directly into R!
Basic Info
- Host: GitHub
- Owner: ropensci
- License: other
- Language: R
- Default Branch: main
- Homepage: https://docs.ropensci.org/qualtRics
- Size: 11.1 MB
Statistics
- Stars: 225
- Watchers: 20
- Forks: 71
- Open Issues: 45
- Releases: 16
Topics
api
qualtrics
qualtrics-api
r
r-package
rstats
survey
survey-data
Created over 9 years ago
· Last pushed 6 months ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# qualtRics
**Authors:**
[Julia Silge](https://juliasilge.com/),
[Joseph O'Brien](joseph.m.obrien@gmail.com),
[Jasper Ginn](https://jasperhg90.github.io/)
**License:**
[MIT](https://opensource.org/license/mit)
[](https://github.com/ropensci/qualtRics/actions)
[](https://cran.r-project.org/package=qualtRics)
[](https://app.codecov.io/gh/ropensci/qualtRics?branch=master)
[](https://github.com/ropensci/software-review/issues/192)
[](https://zenodo.org/badge/latestdoi/70817337)
[](https://doi.org/10.21105/joss.00690)
[](https://CRAN.R-project.org/package=qualtRics)
[](https://CRAN.R-project.org/package=qualtRics)
[](https://www.repostatus.org/#active)
[Qualtrics](https://www.qualtrics.com/) is an online survey and data collection software platform. Qualtrics is used across many domains in both academia and industry for online surveys and research. While users can manually download survey responses from Qualtrics through a browser, importing this data into R is then cumbersome. The qualtRics R package implements the retrieval of survey data using the Qualtrics API and aims to reduce the pre-processing steps needed in analyzing such surveys. Currently, this package is the only package on CRAN that offers such functionality, and is included in the official Qualtrics API documentation.
Note that your institution must support API access and that it must be enabled for your account. Whoever manages your Qualtrics account can help you with this. Please refer to the [Qualtrics documentation](https://api.qualtrics.com/) to find your API token.
The authors of this package are not affiliated with Qualtrics, and Qualtrics does not offer support for this package. For specific information about the Qualtrics API, you can refer to the [official documentation](https://api.qualtrics.com/).
## Installation
This package can be installed from CRAN:
```{r eval=FALSE}
install.packages("qualtRics")
```
Alternatively, you can install the development version with the [remotes](https://cran.r-project.org/package=remotes) package (or alternatively, [devtools](https://cran.r-project.org/package=devtools)):
```{r eval=FALSE}
install.packages("remotes")
remotes::install_github("ropensci/qualtRics")
```
## Access your Qualtrics data
Currently, the package contains three core functions:
1. `all_surveys()` fetches a list of all surveys that you own or have access to from Qualtrics.
2. `fetch_survey()` downloads a survey from Qualtrics and loads it into R.
3. `read_survey()` allows you to read CSV files you download manually from Qualtrics.
It also contains [multiple helper functions](https://docs.ropensci.org/qualtRics/reference/index.html#other-helper-functions), including:
1. `qualtrics_api_credentials()` stores your API key and base URL in environment variables.
2. `survey_questions()` retrieves a data frame containing questions and question IDs for a survey; `extract_colmap()` retrieves a similar data frame with more detailed mapping from columns to labels.
3. `metadata()` retrieves metadata about your survey, such as questions, survey flow, number of responses etc.
Note that you can only export surveys that you own, or to which you have been given administration rights.
## Register your Qualtrics credentials
There are two important credentials you need to authenticate with the Qualtrics API. These are your **API key** and **datacenter-specific base URL**. The base URL you pass to the qualtRics package should look like `yourdatacenterid.qualtrics.com`, without a scheme such as `https://`. The [Qualtrics API documentation](https://api.qualtrics.com/) explains how you can find your base URL.
You can store your API credentials `QUALTRICS_API_KEY` and `QUALTRICS_BASE_URL` in your `.Renviron` file for repeated use across sessions. The qualtRics package has a function to help with this.
```{r, eval=FALSE}
library(qualtRics)
qualtrics_api_credentials(api_key = "",
base_url = "",
install = TRUE)
```
After you use this function, reload your environment (`readRenviron("~/.Renviron")`) so you can use the credentials without restarting R.
## A simple Qualtrics workflow
Once your Qualtrics API credentials are stored, you can see what surveys are available to you.
```{r, eval=FALSE}
surveys <- all_surveys()
```
You can then download the data from any of these individual surveys (for example, perhaps the sixth one) directly into R.
```{r, eval=FALSE}
mysurvey <- fetch_survey(surveyID = surveys$id[6],
verbose = TRUE)
```
See the qualtRics vignette for more details on variable metadata, automatic conversion of variables, retrieving responses between specific dates or for specific survey items, and more.
## Related work
- [Jason Bryer](https://github.com/jbryer/qualtrics) wrote an R package to work with the previous version of the Qualtrics API
- [QualtricsTools](https://github.com/emma-morgan/QualtricsTools) creates automatic reports in shiny.
- [qsurvey](https://github.com/jamesdunham/qsurvey) by James Dunham focuses on testing and review of surveys before fielding, and analysis of responses afterward.
### Community Guidelines
This project is released with a [Contributor Code of Conduct](https://github.com/ropensci/qualtRics/blob/master/CONDUCT.md). By participating in this project you agree to abide by its terms. Feedback, bug reports (and fixes!), and feature requests are welcome; file issues or seek support [here](https://github.com/ropensci/qualtRics/issues).
[](https://ropensci.org)
Owner
- Name: rOpenSci
- Login: ropensci
- Kind: organization
- Email: info@ropensci.org
- Location: Berkeley, CA
- Website: https://ropensci.org/
- Twitter: rOpenSci
- Repositories: 307
- Profile: https://github.com/ropensci
JOSS Publication
qualtRics: retrieve survey data using the Qualtrics API
Published
April 21, 2018
Volume 3, Issue 24, Page 690
Tags
survey data API QualtricsPapers & Mentions
Total mentions: 3
Informal coercion during childbirth: risk factors and prevalence estimates from a nationwide survey of women in Switzerland
- DOI: 10.1186/s12884-021-03826-1
- OpenAlex ID: https://openalex.org/W3163336341
- Published: May 2021
Last synced: 4 months ago
COVIDiSTRESS Global Survey dataset on psychological and behavioural consequences of the COVID-19 outbreak
- DOI: 10.1038/s41597-020-00784-9
- OpenAlex ID: https://openalex.org/W3092872384
- Published: January 2021
Last synced: 4 months ago
A global dataset of inland fisheries expert knowledge
- DOI: 10.1038/s41597-021-00949-0
- OpenAlex ID: https://openalex.org/W3180327092
- Published: July 2021
Last synced: 4 months ago
GitHub Events
Total
- Issues event: 21
- Watch event: 9
- Delete event: 2
- Issue comment event: 55
- Push event: 13
- Pull request event: 9
- Fork event: 2
- Create event: 2
Last Year
- Issues event: 21
- Watch event: 9
- Delete event: 2
- Issue comment event: 55
- Push event: 13
- Pull request event: 9
- Fork event: 2
- Create event: 2
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Jasper Ginn | j****n@h****m | 458 |
| Julia Silge | j****e@g****m | 163 |
| Julia Silge | j****e@s****m | 25 |
| Daniel Seneca | s****h@g****m | 21 |
| Joseph O'Brien | j****n@g****m | 21 |
| O'Brien | y****u@e****m | 14 |
| Shaun Jackson | s****n@g****m | 10 |
| Stefan Borer | s****r@i****h | 8 |
| Phoebe | p****g@b****u | 7 |
| samuelkaminsky | s****y@g****m | 6 |
| jntrcs | j****0@g****m | 5 |
| Chris Umphlett | 7****t | 4 |
| lyh970817 | 3****7 | 2 |
| Eric Knudsen | e****d | 2 |
| Daniel | m****l@d****e | 1 |
| Jeanette Clark | j****k@n****u | 1 |
| Mark Rieke | 3****e | 1 |
| Maëlle Salmon | m****n@y****e | 1 |
| Michael W. Kearney | k****w@m****u | 1 |
| Nicholas Vasile | N****e@c****m | 1 |
| Jackson Curtis | j****c@q****m | 1 |
| Daniel Seneca | s****d@s****m | 1 |
| Ryan Haunfelder | h****d@g****m | 1 |
| Sean Murphy | s****y@g****m | 1 |
Committer Domains (Top 20 + Academic)
senecad-cpjhd4.wifi.gene.com: 1
qualtrics.com: 1
citrix.com: 1
missouri.edu: 1
nceas.ucsb.edu: 1
danielluedecke.de: 1
berkeley.edu: 1
imu.unibe.ch: 1
stackoverflow.com: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 113
- Total pull requests: 50
- Average time to close issues: 4 months
- Average time to close pull requests: about 1 month
- Total issue authors: 77
- Total pull request authors: 13
- Average comments per issue: 5.38
- Average comments per pull request: 3.04
- Merged pull requests: 30
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 13
- Pull requests: 8
- Average time to close issues: about 1 month
- Average time to close pull requests: 4 days
- Issue authors: 13
- Pull request authors: 3
- Average comments per issue: 2.54
- Average comments per pull request: 0.38
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jmobrien (11)
- juliasilge (10)
- chrisumphlett (7)
- asadow (4)
- zaslove (3)
- saritpery (2)
- vjbrady68 (2)
- isaacahuvia (2)
- rempsyc (2)
- g11217 (2)
- joey-levy (2)
- Rory-OG (1)
- AmosBunde (1)
- cndunham (1)
- cs40404 (1)
Pull Request Authors
- jmobrien (19)
- juliasilge (17)
- chrisumphlett (5)
- dsen6644 (3)
- JeffreyRStevens (2)
- Haunfelder (2)
- aaronball85 (1)
- jeanetteclark (1)
- jamesmartherus (1)
- WillForan (1)
- anisfeld (1)
- essentialols (1)
- lyh970817 (1)
Top Labels
Issue Labels
feature (19)
api access (16)
help wanted (7)
bug (4)
discussion (4)
documentation (4)
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- cran 2,299 last-month
- Total docker downloads: 110,722
-
Total dependent packages: 1
(may contain duplicates) -
Total dependent repositories: 7
(may contain duplicates) - Total versions: 33
- Total maintainers: 1
proxy.golang.org: github.com/ropensci/qualtRics
- Documentation: https://pkg.go.dev/github.com/ropensci/qualtRics#section-documentation
- License: other
-
Latest release: v3.2.2+incompatible
published 6 months ago
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced:
6 months ago
proxy.golang.org: github.com/ropensci/qualtrics
- Documentation: https://pkg.go.dev/github.com/ropensci/qualtrics#section-documentation
- License: other
-
Latest release: v3.2.2+incompatible
published 6 months ago
Rankings
Dependent packages count: 5.4%
Average: 5.6%
Dependent repos count: 5.8%
Last synced:
6 months ago
cran.r-project.org: qualtRics
Download 'Qualtrics' Survey Data
- Homepage: https://docs.ropensci.org/qualtRics/
- Documentation: http://cran.r-project.org/web/packages/qualtRics/qualtRics.pdf
- License: MIT + file LICENSE
-
Latest release: 3.2.2
published 6 months ago
Rankings
Forks count: 1.0%
Stargazers count: 2.1%
Downloads: 8.3%
Dependent repos count: 11.1%
Average: 11.3%
Dependent packages count: 18.1%
Docker downloads count: 27.3%
Maintainers (1)
Last synced:
6 months ago
Dependencies
DESCRIPTION
cran
- cli * imports
- dplyr >= 1.0 imports
- glue * imports
- httr * imports
- jsonlite * imports
- lifecycle * imports
- lubridate * imports
- purrr * imports
- readr * imports
- rlang * imports
- sjlabelled * imports
- stringr * imports
- tibble * imports
- tidyr * imports
- covr * suggests
- knitr * suggests
- rmarkdown * suggests
- testthat * suggests
- vcr * suggests
- webmockr * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
