[R] does there any function like sumif in excel?
jim holtman
jholtman at gmail.com
Mon Sep 29 04:45:10 CEST 2008
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?
More information about the R-help
mailing list