[R] Combining a character array into a character string

Erin Hodgess erinm.hodgess at gmail.com
Sun Feb 7 22:24:23 CET 2016


Hello everyone!

I'm sure this is very simple and that I'm just having "forest and trees"
syndrome.

I have the following character array:

> xxy
[1] "A" "G" "C" "G" "T"

I want to end up with
"AGCGT:"

I've tried paste, paste0, gsub, no good.

Any suggestions much appreciated.

Thanks and have a great day!

Sincerely,
Erin


-- 
Erin Hodgess
Associate Professor
Department of Mathematical and Statistics
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com

	[[alternative HTML version deleted]]



More information about the R-help mailing list