<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/qualtrics-2-0-now-available-from-cran/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://www.jasperginn.nl/qualtrics2-blog/"> Jasper Ginn's blog</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>qualtRics version 2.0 is now available <a rel="nofollow" href="https://cran.r-project.org/web/packages/qualtRics/index.html" target="_blank">from CRAN</a>. 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 <a rel="nofollow" href="https://github.com/JasperHG90/qualtRics#changelog" target="_blank">here</a>.</p>
<h3>qualtRics configuration file</h3>
<p>In previous versions, users needed to register their API key by calling the <code>registerApiKey()</code> 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.</p>
<p>In this version, the <code>registerApiKey()</code> function has been replaced by <code>registerOptions()</code>, 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 <a rel="nofollow" href="https://github.com/JasperHG90/qualtRics#registering-your-qualtrics-credentials" target="_blank">here</a></p>
<p>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 <a rel="nofollow" href="https://github.com/JasperHG90/qualtRics#using-a-configuration-file" target="_blank">here</a>.</p>
<h3>getSurvey() supports all available parameters</h3>
<p>The <code>getSurvey()</code> function now supports all parameters that the <a rel="nofollow" href="https://api.qualtrics.com/docs/create-response-export" target="_blank">Qualtrics API</a> provides. Concretely, I’ve added the following parameters since version 1.0:</p>
<ol>
<li><strong>seenUnansweredRecode:</strong> Recode seen but unanswered questions with a string value.</li>
<li><strong>limit:</strong> Maximum number of responses exported. Defaults to NULL (all responses).</li>
<li><strong>useLocalTime:</strong> Use local timezone to determine response date values.</li>
<li><strong>includedQuestionIds:</strong> Export only specified questions.</li>
</ol>
<p>You can use a new function called <code>getSurveyQuestions()</code> to retrieve a data frame of question IDs and labels, which you can in turn pass to the <code>getSurvey()</code> function to export only a subset of your questions.</p>
<h3>getSurveys() retrieves > 100 surveys</h3>
<p>In previous versions of qualtRics, <code>getSurveys()</code> 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.</p>
<p>If you notice any issues with the package, or if you would like to suggest a feature, please leave a comment <a rel="nofollow" href="https://github.com/JasperHG90/qualtRics/issues" target="_blank">here</a>.</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://www.jasperginn.nl/qualtrics2-blog/"> Jasper Ginn's blog</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/QwAM1n_oqNY" height="1"></a></div>