Skip to content
Prev 200021 / 398506 Next

Odp: How to select the part of column name heads?

Hi

r-help-bounces at r-project.org napsal dne 12.11.2009 14:59:57:
days_180
column
expressed like this.
I had similar problem some time ago. Chuck Taylor helped me with this and 
I suppose you can use it too

x<-names(yd)
maturity <- substring(x, regexpr("[0-9]+$", x))
use maturity[maturity>15]

regards
Petr
http://www.R-project.org/posting-guide.html