Re: [Rd] Keep class attribute when applying c() to hexmodes

2024-05-27 Thread Duncan Murdoch
On 2024-05-27 11:49 a.m., Schuhmacher, Dominic wrote: Dear list, The following behavior in base R is unexpected to me: a <- as.hexmode("99ac") b <- as.hexmode("9ce5") v <- c(a,b) v #> [1] 39340 40165 class(v) #> [1] "integer" Is there a good reason why v should not be of class "hexmode"? I ca

[Rd] Keep class attribute when applying c() to hexmodes

2024-05-27 Thread Schuhmacher, Dominic
Dear list, The following behavior in base R is unexpected to me: a <- as.hexmode("99ac") b <- as.hexmode("9ce5") v <- c(a,b) v #> [1] 39340 40165 class(v) #> [1] "integer" Is there a good reason why v should not be of class "hexmode"? I can see that this is exactly as documented. The help for `