Skip to content
Prev 157507 / 398506 Next

does there any function like sumif in excel?

There are several ways to subset the dataframe 
?select will give you one.

or mydata[mydata$A=value]<- mydata

then apply sum()


I do not think there is one single command equivalent to sumif()
--- On Sun, 9/28/08, caocheng?? <caocheng8230 at gmail.com> wrote:

            
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at
http://ca.toolbar.yahoo.com.