Skip to content
Prev 387208 / 398503 Next

Concatenation?

Right, Bert, but not if X is "only"  matrix. ;-)

 > X <- cbind(X1 = letters[1:3],
            X2 = 5:7,
            X3 = LETTERS[1:3]
)
 > do.call(paste0, X)
Fehler in do.call(paste0, X) : das zweite Argument muss eine Liste sein

(Sorry, but my system is German. :-))

But, of course, then, e.g.,

do.call(paste0, data.frame(X))

would work.

  Best  --  Gerrit

---------------------------------------------------------------------
Dr. Gerrit Eichner                   Mathematical Institute, Room 212
gerrit.eichner at math.uni-giessen.de   Justus-Liebig-University Giessen
Tel: +49-(0)641-99-32104          Arndtstr. 2, 35392 Giessen, Germany
http://www.uni-giessen.de/eichner
---------------------------------------------------------------------

Am 18.02.2021 um 17:08 schrieb Bert Gunter: