Skip to content

extracting columns with same partial name

4 messages · Henrique Dallazuanna, Peter Ehlers, Martin Striz

#
Try this:

DF[,grep("BOUTLENGTHTOT", l)]
On Thu, Jan 14, 2010 at 4:43 PM, Martin Striz <mstriz at gmail.com> wrote:

  
    
#
Try

dat[names(dat) %in% paste("BOUTLENGTHTOT", 1:17, sep="")]

  -Peter Ehlers
Martin Striz wrote: