{"action":"closed","issue":{"url":"https://api.github.com/repos/tidyverse/readr/issues/521","repository_url":"https://api.github.com/repos/tidyverse/readr","labels_url":"https://api.github.com/repos/tidyverse/readr/issues/521/labels{/name}","comments_url":"https://api.github.com/repos/tidyverse/readr/issues/521/comments","events_url":"https://api.github.com/repos/tidyverse/readr/issues/521/events","html_url":"https://github.com/tidyverse/readr/issues/521","id":176773123,"number":521,"title":"readr 1.0.0: read_csv2 silently drops decimals","user":{"login":"jules32","id":5891909,"avatar_url":"https://avatars.githubusercontent.com/u/5891909?v=3","gravatar_id":"","url":"https://api.github.com/users/jules32","html_url":"https://github.com/jules32","followers_url":"https://api.github.com/users/jules32/followers","following_url":"https://api.github.com/users/jules32/following{/other_user}","gists_url":"https://api.github.com/users/jules32/gists{/gist_id}","starred_url":"https://api.github.com/users/jules32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jules32/subscriptions","organizations_url":"https://api.github.com/users/jules32/orgs","repos_url":"https://api.github.com/users/jules32/repos","events_url":"https://api.github.com/users/jules32/events{/privacy}","received_events_url":"https://api.github.com/users/jules32/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-13T23:05:11Z","updated_at":"2016-10-28T13:15:59Z","closed_at":"2016-10-28T13:15:59Z","body":"Hi there,\r\n\r\nI have a data file that has mixed European-US conventions; it is semicolon separated (;) but the numeric values use periods (.) as decimals. When I use `read_csv2`, it silently drops the periods instead of treating them like decimals; it is probably expecting commas (,) as decimals instead.\r\n\r\nIt's probably not that common to have both formats within the same csv file, or maybe there is already a way to handle this?\r\n\r\nThanks!\r\n\r\nExample:\r\n\r\nlet's say this is my `sample.csv`:\r\n\r\n```\r\ncountry;area_km2\r\nSweden;6739.5362\r\nDenmark;15300.69996\r\nGermany;140.98877\r\n```\r\n\r\n```r\r\nreadr::read_csv2('sample.csv')\r\n# A tibble: 3 × 2\r\n  country   area_km2\r\n    <chr>      <dbl>\r\n1  Sweden   67395362\r\n2 Denmark 1530069996\r\n3 Germany   14098877\r\n```\r\n"}}
{"actor":{"display_login":"hadley"}}