[R] how to read data from table based a condition
ligges at statistik.tu-dortmund.de
Thu Apr 10 11:26:14 CEST 2008
Marc Moragues wrote:
> Xin <jasonshi510 <at> hotmail.com> writes:
>> I want to know the mean of y if corresponding x=1.
> Try this:
1. If you answer, please write at least syntactically valid code (look
at your index brackets).
should do the trick....
2. It is a bad idea to do others' homeworks, they won't learn much this way.
> You can also look at ?subset.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help