[R] calculations on columns with partially matching names

2010-01-03 Thread Jim Bouldin
Is there a command for partial matching of character strings? Specifically, I'd like to be able to calculate the mean of the values in any columns in a data frame or matrix that have identity in part of their column names. For example, columns labeled mpw06a and mpw06b match on the first five

Re: [R] calculations on columns with partially matching names

2010-01-03 Thread David Winsemius
On Jan 3, 2010, at 6:09 PM, Jim Bouldin wrote: Is there a command for partial matching of character strings? Specifically, I'd like to be able to calculate the mean of the values in any columns in a data frame or matrix that have identity in part of their column names. For example,