Giter VIP home page Giter VIP logo

Comments (3)

hadley avatar hadley commented on June 29, 2024

Please re-open if you can provide a reproducible example.

from haven.

rubenarslan avatar rubenarslan commented on June 29, 2024

Hi, sorry for not doing this earlier, I thought it'd be difficult and I couldn't share the original dataset. However, the error shows even using a two variable subset. It works using cars though.
I attached links to the data in rdata and sav format. Nothing odd about it as far as I can tell (and it's easy to examine the whole dataset). The data displays normally in SPSS v20 and does not look constant at all, but I cannot run a bivariate correlation between the two variables.
If I take only the first 50 rows, it works, if I take the first 200 of 209 it doesn't. I guess this explains why it works using cars, which has only 50 rows.

library(haven)
load("test.rda")
write_sav(example, path = "test.sav")

https://dl.dropboxusercontent.com/u/1078620/test.rda
https://dl.dropboxusercontent.com/u/1078620/test.sav

from haven.

rubenarslan avatar rubenarslan commented on June 29, 2024

I'm sorry, didn't notice this before. It's about missings. There's some missings on row 146, and that's what causes it. Changing the missings to some other value fixes it. After I changed them to a number, I can set them missing again and it still works.

from haven.

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.