Skip to content
Prev 37586 / 63424 Next

No [[<-.factor()

On Thu, 26 Aug 2010, Martin Maechler wrote:

            
I don't think so.  do_subassign2 does formal method dispatch, albeit 
internally, but nothing else (do_assign2_dflt selects only by 
typeof()).
I added a [[<-.factor yesterday.  Note that we do have a [<-.factor 
which works on the integer codes, and I simply copied its logic.

BTW, you probably meant

z[[2:3]] <- c("Two", "Three")