[R] Help with adding 'dates' string as rownames to matrix

kevj1980 kevin.kidney at cameronhume.com
Fri Jan 25 11:22:18 CET 2013


Hi, I need help with two related issues:

1. I wish to drop repeating text "BST" from the below 'dates' string:

 [1] "2005-04-01 BST" "2005-04-04 BST" "2005-04-05 BST" "2005-04-06 BST"
"2005-04-07 BST" "2005-04-08 BST" "2005-04-11 BST" "2005-04-12 BST"
"2005-04-13 BST" "2005-04-14 BST" "

2. I then wish to add this (cleaned-up) 'dates' string as the row names to a
matrix (same length as 'dates' string)

Any expertise greatly appreciated,
kevj



--
View this message in context: http://r.789695.n4.nabble.com/Help-with-adding-dates-string-as-rownames-to-matrix-tp4656611.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list