Re: [R] A problem with text manipulation

2013-03-04 Thread David Winsemius
"E" "B.2" "E.1" "E.2" "D" "D.1" "A" > ?make.names -- David. > Bill Dunlap > Spotfire, TIBCO Software > wdunlap tibco.com > > >> -Original Message- >> From: r-help-boun...@r-projec

Re: [R] A problem with text manipulation

2013-03-04 Thread arun
1" "A" A.K. - Original Message - From: Christofer Bogaso To: r-help Cc: Sent: Monday, March 4, 2013 2:13 PM Subject: [R] A problem with text manipulation Hello again, Let say I have following vector: set.seed(1) Vec <- sample(LETTERS[1:5], 10, replace = TRUE) Vec

Re: [R] A problem with text manipulation

2013-03-04 Thread Bert Gunter
Christofer: This reminds me of those IQ puzzles I took so many years ago as a kid: Given the numbers 7, 22, 43, 5, 26,...what are the next 3 numbers in this series? I don't recall having a clue, and when I got older and more mathematical, generally came to the conclusion that it could logicall

Re: [R] A problem with text manipulation

2013-03-04 Thread William Dunlap
quot; Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of Christofer Bogaso > Sent: Monday, March 04, 2013 11:14 AM > To: r-help > Subject: [R] A proble

[R] A problem with text manipulation

2013-03-04 Thread Christofer Bogaso
Hello again, Let say I have following vector: set.seed(1) Vec <- sample(LETTERS[1:5], 10, replace = TRUE) Vec Now with each repeated letter, I like to add suffix programatically. Therefore I want to get following vector: c("B", "B1", "C", "E", "B2", "E1", "E2", "D", "D1", "A") Can somebody tel