I'd like to be able to send in a column name to a call that I am making to ddply
. An example ddply
call:
ddply(myData, .(MyGrouping), summarise, count=sum(myColumnName))
If I have ddply
wrapped within another function is it possible to wrap this so that I can pass in an arbitrary value as myColumnName
to the calling function?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…