Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readr loses negative values when reading #383

Closed
vzemlys opened this issue Mar 25, 2016 · 1 comment
Closed

Readr loses negative values when reading #383

vzemlys opened this issue Mar 25, 2016 · 1 comment

Comments

@vzemlys
Copy link

vzemlys commented Mar 25, 2016

Compare the following:

library(readr)
library(dplyr)
read_csv("data.csv") %>% filter(Geographies == "Lithuania") %>% .[["Q1 2009"]]
read.csv("data.csv") %>% filter(Geographies == "Lithuania") %>% .[["Q1.2009"]]

The read_csv drops the negative sign.

data.csv.zip

R version 3.2.3 (2015-12-10)
Platform: x86_64-apple-darwin13.4.0 (64-bit)
Running under: OS X 10.11.3 (El Capitan)

locale:
[1] fr_FR.UTF-8/fr_FR.UTF-8/fr_FR.UTF-8/C/fr_FR.UTF-8/fr_FR.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] dplyr_0.4.3 readr_0.2.2

loaded via a namespace (and not attached):
[1] lazyeval_0.1.10 magrittr_1.5    R6_2.1.2        assertthat_0.1 
[5] parallel_3.2.3  tools_3.2.3     DBI_0.3.1       Rcpp_0.12.3

@jennybc
Copy link
Member

jennybc commented Mar 25, 2016

Duplicate of #358. Related to #350 and #308.

@hadley hadley closed this as completed Jun 1, 2016
@lock lock bot locked and limited conversation to collaborators Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants