Hello R-help, I am trying to compute the mean of a quarterback's career fantasy football stats, but I wish to exclude his 2014 stats from the mean, as that will be the test data for the model I am trying to build for my academic undergrad research.
The code for figuring out the mean of his Yds for every career Game 1 was simple: *mean(brady.t$Yds[brady.t$G. == 1])* How can I make an "if-then" statement though so that his 2014 stats are excluded? Or is there an easier way besides "if-then?" Thank you, AKJ [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.