qualtRics 2.0 now available from CRAN

June 16, 2017
By

(This article was first published on Jasper Ginn's blog, and kindly contributed to R-bloggers)

qualtRics version 2.0 is now available from CRAN. This version contains several additional features and simplifies the process of importing survey exports from Qualtrics. Below, I outline the most important changes. You can check the full changelog here.

qualtRics configuration file

In previous versions, users needed to register their API key by calling the registerApiKey() function to avoid having to pass it to each function. However, they did need to pass the root url to each function, which is annoying and inconsistent.

In this version, the registerApiKey() function has been replaced by registerOptions(), which stores both the API key and the root url in environment variables. It also stores several other options (e.g. verbose logs to the R console). You can find more information about this here

This version also supports the use of a configuration file called ‘.qualtRics.yml’ that the user can store in the working directory of an R project. If a config file is present in the working directory, then it will be loaded when the user loads the qualtRics library, eliminating the need to register credentials at all. You can find more information about this here.

getSurvey() supports all available parameters

The getSurvey() function now supports all parameters that the Qualtrics API provides. Concretely, I’ve added the following parameters since version 1.0:

  1. seenUnansweredRecode: Recode seen but unanswered questions with a string value.
  2. limit: Maximum number of responses exported. Defaults to NULL (all responses).
  3. useLocalTime: Use local timezone to determine response date values.
  4. includedQuestionIds: Export only specified questions.

You can use a new function called getSurveyQuestions() to retrieve a data frame of question IDs and labels, which you can in turn pass to the getSurvey() function to export only a subset of your questions.

getSurveys() retrieves > 100 surveys

In previous versions of qualtRics, getSurveys() only retrieved 100 results. It now fetches all surveys. If you manage many surveys, this does mean that it could take some time for the function to complete.

If you notice any issues with the package, or if you would like to suggest a feature, please leave a comment here.

To leave a comment for the author, please follow the link and comment on their blog: Jasper Ginn's blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)