Duncan Murdoch wrote:
> On 6/14/2007 10:49 AM, Jeffrey Horner wrote:
>> Hi,
>>
>> Here's a patch to the readChar manual page (R-trunk as of today) that
>> better clarifies readChar's return value.
>
> Your update is not right. For example:
>
> x <- as.raw(32:96)
> readChar(x, nchars=rep(2,100)
On 6/14/2007 10:49 AM, Jeffrey Horner wrote:
> Hi,
>
> Here's a patch to the readChar manual page (R-trunk as of today) that
> better clarifies readChar's return value.
Your update is not right. For example:
x <- as.raw(32:96)
readChar(x, nchars=rep(2,100))
This returns a character vector of
Hi,
Here's a patch to the readChar manual page (R-trunk as of today) that
better clarifies readChar's return value. It could use some work as I'd
also like to add some text about using nchar() to find the length of the
string that readchar() returns, but I'm unsure which of type="bytes" or
typ