Re: [Rd] paste strings in C

2017-06-27 Thread Adrian Dușa
Hi Michael, On Tue, Jun 27, 2017 at 5:31 PM, Michael Lawrence wrote: > > To do this in C, it would probably be easier and faster to just do the > string manipulation directly. Luckily, there are already packages that > have done this for you. See an example below using the S4Vectors > package. T

Re: [Rd] paste strings in C

2017-06-27 Thread Michael Lawrence
To do this in C, it would probably be easier and faster to just do the string manipulation directly. Luckily, there are already packages that have done this for you. See an example below using the S4Vectors package. foo2 <- function(mymat, colnms, tilde=FALSE) { chars <- colnms[col(mymat)]