Giter VIP home page Giter VIP logo

Comments (12)

JasperHG90 avatar JasperHG90 commented on July 21, 2024

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:

As you can see here, the readSurvey() function uses UTF-8 for the 'fileEncoding' argument.

Here's what I suggest you try:

  1. Re-run your code until you see the error
  2. 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)
  1. Let me know if that worked. If it does, I'll add 'fileEncoding' as an optional argument.

Best,

J.

from qualtrics.

cmbohn avatar cmbohn commented on July 21, 2024

from qualtrics.

JasperHG90 avatar JasperHG90 commented on July 21, 2024

from qualtrics.

cmbohn avatar cmbohn commented on July 21, 2024

from qualtrics.

JasperHG90 avatar JasperHG90 commented on July 21, 2024

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?

rconsole

Best,

J.

from qualtrics.

JasperHG90 avatar JasperHG90 commented on July 21, 2024

As an aside: is the data you download from Qualtrics manually and load into R complete?

from qualtrics.

cmbohn avatar cmbohn commented on July 21, 2024

from qualtrics.

cmbohn avatar cmbohn commented on July 21, 2024

from qualtrics.

JasperHG90 avatar JasperHG90 commented on July 21, 2024

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:

  1. Does your survey contain text that is not in English with special characters?
  2. 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.

cmbohn avatar cmbohn commented on July 21, 2024

from qualtrics.

JasperHG90 avatar JasperHG90 commented on July 21, 2024

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.

JasperHG90 avatar JasperHG90 commented on July 21, 2024

Issue should be solved. Please look at #38

from qualtrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.