[R] does there any function like sumif in excel?

jim holtman
Mon, 29 Sep 2008 02:45:10 -0000

yourData$B[yourData$A == someValue]

On Sun, Sep 28, 2008 at 10:25 PM, caocheng?? <caocheng8230 at gmail.com>
wrote:
> I have a data.frame datas which have two columns A and B.
> I want to filter column A by some values and to get a value list which
> contain the value in B.
> Best wishes!
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



--
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?