Comments (12)
Thanks for your comment.
When importing survey data into R, is there a delay between what is current in the Qualtrics system and what is being downloaded?
I'm not aware of such a delay. Essentially, you're just making a call to the Qualtrics API in which you request a csv file of the response exports.
Is it possible that the data is having problems importing?
Yes, that is possible. (see e.g. #13). In this case, I'm guessing there are special characters in your csv file. I googled that error and found the following:
- Invalid Input causes read.csv to cut off data
- Invalid multibyte string in read.csv
- Reading in data with unusual characters
As you can see here, the readSurvey()
function uses UTF-8 for the 'fileEncoding' argument.
Here's what I suggest you try:
- Re-run your code until you see the error
- Execute the following:
# Get temp dir
td <- tempdir()
# List files and show
list.files(td)
# Copy the name of your survey
file_name <- paste(td, "/", "<YOUR-SURVEY>.csv")
# Read it into R
surv <- read.csv(file=file_name,
header = FALSE,
sep = ',',
stringsAsFactors=FALSE,
fileEncoding = "latin1",
skip = 3)
- Let me know if that worked. If it does, I'll add 'fileEncoding' as an optional argument.
Best,
J.
from qualtrics.
from qualtrics.
from qualtrics.
from qualtrics.
Thanks for helping out :-). It's useful for me to know such issues so I can solve them.
You are right: without specifying a directory in which to save the export the csv file is deleted from the temporary folder.
Can you follow the steps in the image below and tell me if this works for you?
Best,
J.
from qualtrics.
As an aside: is the data you download from Qualtrics manually and load into R complete?
from qualtrics.
from qualtrics.
from qualtrics.
Hm.
Last thing I suggest you try:
After downloading the csv in a temporary folder, copy-paste the temporary folder in your file manager and open de csv file in excel.
Two things I'd like to know about your survey:
- Does your survey contain text that is not in English with special characters?
- Does your survey contain questions that ask the participant to input lines of text? (e.g. a sentence or two/three)
Thanks for your help!
from qualtrics.
from qualtrics.
Ok. Thanks for trying out these suggestions. I'll close this issue for now because I can't reproduce it on my end, but I'll get back to this at a later point in time.
from qualtrics.
Issue should be solved. Please look at #38
from qualtrics.
Related Issues (20)
- exporting csv as numeric values HOT 2
- Automatic coercion from logical to character was deprecated in purrr 1.0.0. HOT 1
- fetch_survey and save_dir HOT 4
- fetch_survey doesn't seem to pull a retaken response HOT 2
- Support for OAuth (vs. API Token)? HOT 2
- Issue with fetching surveys HOT 3
- fetch distribution summary information? HOT 2
- error on fetching distribution history (i.e., full list of survey invitees along with distribution status) HOT 3
- `dplyr::case_when()` within `dplyr::mutate()` loses `qualtRics` variable labels HOT 7
- lag / incomplete pull of list_distribution_links() HOT 1
- feature discussion: custom temporary directory HOT 4
- Future look: Funding support from Qualtrics? HOT 2
- fetch_survey error; filename issue? HOT 18
- results from all_surveys() and list_surveys is different HOT 5
- fetch_survey produces "Error: Qualtrics API raised a bad request (400) error" HOT 5
- Overhaul of credentialling system
- Error parsing file: The file does not appear to be a valid survey. Save as qsf - am I doing it wrong? import doesn't work HOT 5
- write_qsf() currently enables only encoding UTF-8 that doesn't handle Hebrew and Arabic HOT 16
- Release qualtRics 3.2.0 HOT 1
- Qualtrics API reported a bad request error (400) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qualtrics.