Re: [Rd] duplicated.data.frame() is broken on data frames containing \r

2013-07-29 Thread Hervé Pagès
OK it's actually documented: The data frame method works by pasting together a character representation of the rows separated by ‘\r’, so may be imperfect if the data frame has characters with embedded carriage returns or columns which do not reliably map to characters. But w

[Rd] duplicated.data.frame() is broken on data frames containing \r

2013-07-29 Thread Hervé Pagès
Hi, The trick used by duplicated.data.frame() is to transform the supplied data.frame into a character vector by pasting together the columns using "\r" as separator. But no precautions are taken to deal with "\r" in the supplied data.frame. As a consequence it's easy to imagine situations where