Hi Malvika, What David means is that we don't do people's homework for them. Have a look at "An Introduction to R" that comes with the R distribution, particularly about sequences and vectorization.
Jim On Fri, Jan 6, 2017 at 7:40 AM, Malvika Marathe <mm95...@gmail.com> wrote: > Can you please help me with this assignment. I am having trouble with > inputting the ID. At the moment, the function will calculate 1-the ID number > you put in. I am not sure how to make it so that you can put only one number > in or a range of your choosing (a range that doesn’t start with 1) > > > > ______________________________________________ > 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. ______________________________________________ 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.