Skip to content

Working with text data/text operators

3 messages · Mihai.Mirauta at bafin.de, Romain Francois, Dieter Menne

#
On 01/19/2010 01:22 PM, Mihai.Mirauta at bafin.de wrote:
You can do things like :

 > dataset[ , grepl( "^Bond1", names( dataset ) ) ]
 > dataset[ , substr( names( dataset ), 1, 5 ) == "Bond1" ]

Romain
#
Mihai.Mirauta wrote:
See Wacek's 

https://stat.ethz.ch/pipermail/r-help/2009-February/187462.html

Dieter