How do I create a column of means of specific columns in a data.frame?
问题 Thanks all for your responses and answers. I can see I've unintentionally left out some important details that may help you understand my problem better. I was trying to keep it simple and generic, but that didn't actually help. Here's an updated version with more information. I have a data.frame with many columns that came from a NetLogo model generated by BehaviorSpace . Each column is a time series that represents a reported value under different experimental conditions with repetitions