Hi kerry1912,
And what exactly would you like to do after the if(...) statement? How did
you read your data in? What's the output of str(yourdata)? Please see
http://www.R-project.org/posting-guide.html<http://www.r-project.org/posting-guide.html>and
help us to help you.
Regards,
Jorge
On Mon, Jan 30, 2012 at 9:52 AM, kerry1912 <> wrote:
> I want to perform two if functions at the same time:
>
> if(home team > away team & home team <= away team + 7) in R but i
am
> struggling to work out how to write this correctly.
>
> Thanks for any help.
>
> --
> View this message in context:
>
http://r.789695.n4.nabble.com/And-Statement-for-two-if-functions-tp4341179p4341179.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@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.
>
[[alternative HTML version deleted]]