|
|
|
|
|
by klmr
3781 days ago
|
|
As character, for instance (in particular, they can do everything factors can do when used in conjunction with `unique`, and sorted factors can be represented as a conjunction of characters and numerics). Factors work better, but only barely. In particular, they are nowadays not any more efficient than using character (!). They used to be, which is why they are liberally used everywhere in R’s base libraries. |
|
How could a comparison of two strings of unknown size be as efficient as comparing two integers? I'm curious to learn something new.