R Programming/Introduction - Wikibooks, open books for an open world - 1 views
-
R is statistical software which is used for data analysis.
-
It includes a huge number of statistical procedures such as t-test, chi-square tests, standard linear models, instrumental variables estimation, local polynomial regressions, etc. It also provides high-level graphics
- ...14 more annotations...
-
R is an object oriented programming language. This means that virtually everything can be stored as an R object. Each object has a class. This class describes what the object contains and what each function does with it. For instance, plot(x) produces different outputs depending on whether x is a regression object or a vecto
-
Arguments are passed to functions inside round brackets (parentheses). One can easily combine functions. For instance you can directly type
-
Commands are normally separated by a newline. If you want to put more than one statement on a line, you can use the ";" delimiter.
-
You can also have one statement on multiple lines. R is case sensitive: a and A are two different objects. Traditionally underscores "_" are not used in names. It is often better to use dots ".". One should avoid using an underscore as the first character of an object name.
-
Here are some things editors do to keep this book internally consistent. If you have something to contribute, go ahead and make your contribution. Other editors can touch up your edits afterwards so that they conform to the guidelines.
-
The local manual of style WB:LMOS for the R programming book, including a brief explanation of why we do it that way, is: Examples use "source" tags : <source lang="rsplus"> a <- 1:10 ; mean(a) </source>. That makes them look pretty to our readers. The name of packages are in bold : '''Hmisc'''. Name of functions are in "code" tags: <code>lm()</code>. Page titles -- the part after "R Programming/" -- are in sentence case, like "R Programming/Working with data frames". We couldn't decide between sentence case and title case, so I flipped a coin. Every page has <noinclude>{{R Programming/Navigation}}</noinclude> at the top and {{R Programming/Navbar|Mathematics|Probability Distributions}} at the bottom. That makes it easier to navigate from one page to another online.
-
-
-
-
-
-
Beginners can have a look at GNU PSPP or Gretl. Intermediate users can check out Stata. Advanced users who like matrix programming may prefer MATLAB or Octave. Very advanced users may use C or Fortran.