Search String: Display: Description: Sort:

Results:

References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*reversing\s+the\s+order\s+of\s+strings\s*$/: 5 ]

Total 5 documents matching your query.

1. reversing the order of strings (score: 1)
Author: "Khan, Sohail" <khan@cshl.edu>
Date: Fri, 16 Jun 2006 12:29:04 -0400
Dear List, I have character vector as follows: "abc" "ffd" "sad" How can I reverse the string so that "cba" "ffd" "das" Thanks. Sohail Khan Scientific Programmer COLD SPRING HARBOR LABORATORY Genome
/archives/html/s-news/2006-06/msg00032.html (7,248 bytes)

2. Re: reversing the order of strings (score: 1)
Author: Sundar Dorai-Raj <sundar.dorai-raj@pdf.com>
Date: Fri, 16 Jun 2006 11:38:45 -0500
I have character vector as follows: "abc" "ffd" "sad" How can I reverse the string so that "cba" "ffd" "das" Thanks. Hi, Sohail, Here's a one-liner: 1:nchar(x)))), paste, collapse = "") [1] "cba" "df
/archives/html/s-news/2006-06/msg00033.html (8,321 bytes)

3. Re: reversing the order of strings (score: 1)
Author: Chuck Cleland <ccleland@optonline.net>
Date: Fri, 16 Jun 2006 12:43:42 -0400
Another one-liner: X <- c("abc", "ffd", "sad") sapply(lapply(strsplit(X, split=""), rev), paste, collapse="") [1] "cba" "dff" "das" I have character vector as follows: "abc" "ffd" "sad" How can I rev
/archives/html/s-news/2006-06/msg00034.html (8,643 bytes)

4. Re: reversing the order of strings (score: 1)
Author: Chuck Cleland <ccleland@optonline.net>
Date: Fri, 16 Jun 2006 12:48:06 -0400
Sorry, strsplit() is only in R. X <- c("abc", "ffd", "sad") sapply(lapply(strsplit(X, split=""), rev), paste, collapse="") [1] "cba" "dff" "das" I have character vector as follows: "abc" "ffd" "sad"
/archives/html/s-news/2006-06/msg00035.html (8,947 bytes)

5. Re: reversing the order of strings (score: 1)
Author: "Khan, Sohail" <khan@cshl.edu>
Date: Fri, 16 Jun 2006 13:00:51 -0400
Thank you all, for your one liners!! -Sohail Sorry, strsplit() is only in R. -- Chuck Cleland, Ph.D. NDRI, Inc. 71 West 23rd Street, 8th floor New York, NY 10010 tel: (212) 845-4495 (Tu, Th) tel: (73
/archives/html/s-news/2006-06/msg00036.html (8,681 bytes)


This search system is powered by Namazu