Examples of how to use R with comments and help
One good thing about R Studio is that you can create a list of commands which you can keep. This means when you've worked out how to do something you can save the command.
To do this go to File on the top line of RStudio > Select New File > RScript
Your screen will look like this now and you can see the two commands in a box on the top LHS . This is the r script
Once you have the Rscript, you can run the commands by selecting a few lines and then going to Code > Run line(s)
One good thing about R Studio is that you can create a list of commands which you can keep. This means when you've worked out how to do something you can save the command.
To do this go to File on the top line of RStudio > Select New File > RScript
Your screen will look like this now and you can see the two commands in a box on the top LHS . This is the r script
Once you have the Rscript, you can run the commands by selecting a few lines and then going to Code > Run line(s)

No comments:
Post a Comment