Displaying 1 result from an estimated 1 matches for "endata".
Did you mean:
ndata
2006 May 31
2
How to choose columns in data.frame by parts of columns' names?
...quot; or "Y". Each "X" is paired
by a "Y", e.g. "XG1" and "YG1", but they are not in the order of "X Y
X Y ...". I want to combine "X*" and "Y*" like this:
data.new[,"G1"] <- (data.old[,"XG1"] + endata.use[,"YG1"])/2
How to choose columns by parts of names? For example, I can pick out
XG1 and YG1 because they have the common part "G1".
Thank you.
Wei-Wei