Skip to content
Prev 369840 / 398503 Next

(no subject)

You desperately need to read the Posting Guide...

A) There is a no homework policy on this list. If this is for a class, stop now and go use the assistance resources offered by your educational institution. 

B) This is a plain text mailing list so the table formatting you saw when you sent this email got stripped leaving a mess for us to be confused by. Use plain text and R code to assemble your question (one useful function for sending data is dput).

C) This is the R-help list, not the R-do-my-work-for-me mailing list. You show us a _small_ example of code with data that gets you part of the way to your desired result or shows what error messages you encountered and clearly describe to us what result you want, and we help you over your hurdle. Some help with reproducible examples [1][2][3]

D) I suspect that you should show us what you have done with data for one year... "initialize the value" is unclear; why you would want to remove values is unclear. The other issue is applying this to multiple years, which should be addressed later. 

Do not assume that reading these highlights absolves you of your obligation to read the Posting Guide. See the footer below. 

[1] http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

[2] http://adv-r.had.co.nz/Reproducibility.html

[3] https://cran.r-project.org/web/packages/reprex/index.html