Re: [R] Potential R bug in identical

2019-01-17 Thread Layik Hama
a Research Fellow Leeds Institute for Data Analytics Room 11.70, Worsley Building, University of Leeds From: Ivan Krylov Sent: 17 January 2019 20:40:32 To: Layik Hama Cc: r-help@r-project.org Subject: Re: [R] Potential R bug in identical On Thu, 17 Jan 2019 14:5

Re: [R] Potential R bug in identical

2019-01-17 Thread Ivan Krylov
On Thu, 17 Jan 2019 21:05:07 + Layik Hama wrote: > Why would `identical(str, "Accident_Index", ignore.case = TRUE)` > behave differently on Linux/MacOS vs Windows? Because str is different from "Accident_Index" on Windows: it was decoded from bytes to characters according to different rules

Re: [R] Potential R bug in identical

2019-01-17 Thread Ivan Krylov
On Thu, 17 Jan 2019 14:55:18 + Layik Hama wrote: > There seems to be some weird and unidentifiable (to me) characters in > front of the `Accidents_Index` column name there causing the length > to be 17 rather than 14 characters. Repeating the reproduction steps described at the linked pull r

[R] Potential R bug in identical

2019-01-17 Thread Layik Hama
Hi, My first email to r-help and as I am not sure about the issue, I wanted to ask for help first. The comments under this thread outline a particular string from a dataset which seems to be read by R on Windows differently to Linux and MacOS and