Re: [R] incoherent conversions from/to raw

2009-03-19 Thread Wacek Kusnierczyk
Wacek Kusnierczyk wrote: > interestingly, > > c(1, as.raw(1)) > # error: type 'raw' is unimplemented in 'RealAnswer' > > three more comments. (1) the above is interesting in the light of what ?c says: " The output type is determined from the highest type of the components in the

[R] incoherent conversions from/to raw

2009-03-18 Thread Wacek Kusnierczyk
i wonder about the following examples showing incoherence in how type conversions are done in r: x = TRUE x[2] = as.raw(1) # Error in x[2] = as.raw(1) : # incompatible types (from raw to logical) in subassignment type fix it seems that there is an attempt to coerce the raw value