Skip to content
Prev 294512 / 398502 Next

select data

On May 14, 2012, at 12:32 PM, Andrea Sica wrote:

            
perhaps (untested in absence of reproducble example):

apply(dfrm, 1, function(x) mean(x[x>=0]) ) # would also work for a  
matrix object.
David Winsemius, MD
West Hartford, CT