[Rd] Small mistake in ?raw

Martin Maechler maechler at stat.math.ethz.ch
Wed Jun 8 13:01:17 CEST 2016


>>>>> Mikko Korpela <mikko.korpela at helsinki.fi>
>>>>>     on Tue, 7 Jun 2016 12:41:54 +0300 writes:

    > In ?raw (src/library/base/man/raw.Rd), the final line of Examples seems 
    > to be off:

    >> isASCII("\x9c25.63") # false (in Latin-1, this is an amount in UK pounds)

    > The character "\x9c" is a control character in Latin-1. Maybe the 
    > example should use "\xa3" instead:

    >> iconv("\x9c25.63", from = "latin1")
    > [1] "\u009c25.63"
    >> iconv("\xa325.63", from = "latin1")
    > [1] "£25.63"

Thank you, Mikko,  I've confirmed what you say  and changed the
comment  (and also added a tiny bit more to the ex. section).

Martin

    > -- 
    > Mikko Korpela
    > Department of Geosciences and Geography
    > University of Helsinki



More information about the R-devel mailing list