Skip to content
Prev 174297 / 398506 Next

functions within a list

On Mar 19, 2009, at 9:01 PM, Altaweel, Mark R. wrote:

            
It's not particularly clear, but the first part at least sounds as  
though you should be looking at tapply rather than sapply. tapply  
works with irregular tables defined by a factor. It might be clearer  
if you produced the results of str() on your "list". I find myself  
wondering if it is a dataframe or not.

tapply(df$X, df$Tick, mean)    # might be what you are seeking.

If not, then try to build a simple example as the posting guide and  
this little message suggest:
David Winsemius, MD
Heritage Laboratories
West Hartford, CT