Basic R Programming

4 programming

r4stats.com

R is a very flexible and powerful programming language, as well as a package that is written using that language (and others like C). The following program demonstrates many of its basic features. You can cut and paste it into R, or download the file that includes it from here. If you run it line by line, many of its features will become clear. Both editions of R for SAS and SPSS Users and R for Stata Users work through a version of this program line-by-line, showing the output and explaining what R is doing.

3 Responses to Basic R Programming

Looks like the “<” symbol is showing up as “<” in the code above. This would probably be confusing to a beginner.

hah, I mean that it is showing up as “& lt ;” with the spaces removed

I got interest in R and I am starting learning from now.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.