Comments are text you use to describe your code. They have to be preeceded with the number sign (#). Any line command after # will not be run by R
As you start coding, it is always a good practice that you explain with your own words what each line of code is intended for.
I cannot tell you the number of times, I have gone back to my old codes and ask myself, what was the purpose of this line. What was I thinking at that time?
To ensure codes can be easy understood later on, we use comments. R comments are text added to your code, which R does not process.
Any comment in R has to be preceded with the number sign (#). For instance:
A=10# Here I used R to show how to create a variableB=20# In this case, i wanted my variable B to be 2A+B
Comments
As you start coding, it is always a good practice that you explain with your own words what each line of code is intended for.
I cannot tell you the number of times, I have gone back to my old codes and ask myself, what was the purpose of this line. What was I thinking at that time?
To ensure codes can be easy understood later on, we use comments. R comments are text added to your code, which R does not process.
Any comment in R has to be preceded with the number sign (#). For instance:
w