[R] intToUtf8

2008-09-19 Thread Christian Hennig
Hi there, any explanation for this? intToUtf8(66) Error in intToUtf8(66) : argument 'x' must be an integer vector intToUtf8(c(66,55)) Error in intToUtf8(c(66, 55)) : argument 'x' must be an integer vector intToUtf8(c(66,55),multiple=TRUE) Error in intToUtf8(c(66, 55)) : argument 'x' must

Re: [R] intToUtf8

2008-09-19 Thread Duncan Murdoch
On 9/19/2008 9:32 AM, Christian Hennig wrote: Hi there, any explanation for this? intToUtf8(66) Error in intToUtf8(66) : argument 'x' must be an integer vector intToUtf8(c(66,55)) Error in intToUtf8(c(66, 55)) : argument 'x' must be an integer vector intToUtf8(c(66,55),multiple=TRUE)

Re: [R] intToUtf8

2008-09-19 Thread Christian Hennig
Dear Duncan, No, they're numeric. integer here is a type, not the mathematical thing. This works: intToUtf8(as.integer(c(66,55))) The docs don't mention this requirement, and it does seem somewhat unnecessary; I'll look into it. Thanks! You're lucky I didn't read to the end of your

Re: [R] intToUtf8

2008-09-19 Thread Duncan Murdoch
On 9/19/2008 9:58 AM, Christian Hennig wrote: Dear Duncan, No, they're numeric. integer here is a type, not the mathematical thing. This works: intToUtf8(as.integer(c(66,55))) The docs don't mention this requirement, and it does seem somewhat unnecessary; I'll look into it. Thanks!