On Thu, Jan 14, 2010 at 1:57 PM, Dennis Murphy <djmuser@gmail.com> wrote:

> Try this:
>
> nms <- paste("BOUTLENGTHTOT", 1:17, sep = "")
> data[, nms]
>



On Thu, Jan 14, 2010 at 2:08 PM, Peter Ehlers <ehlers@ucalgary.ca> wrote:

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

Thanks!  Both methods worked.

--Martin

	[[alternative HTML version deleted]]

