read_sav reads character empty columns as numeric #311
In read_sav, if I try to read a character empty column (i.e, all values are empty string: ""), it is shown as a numeric column with values 6.01347e-154
test <- data_frame(col = c("","")) test write_sav(test, "~/test.sav") test_read <- read_sav("~/test.sav") test_read
> test # A tibble: 2 x 1 col <chr> 1 2 > test_read # A tibble: 2 x 1 col <dbl> 1 6.01347e-154 2 6.01347e-154
I've tried new version 1.1.0, but still occurs.
The text was updated successfully, but these errors were encountered:
I'm seeing this same issue, in haven 1.1.0 from CRAN and haven 126.96.36.19900 on github (7f2b479).
I tried installing haven 1.0.0 from CRAN, and the issue is still present.
However, it is not present in 0.2.1 from CRAN.
I'm seeing the issue in R 3.4.1 on both Windows 7 and MacOS 10.12.6.