-
4
pages
-
English
-
Documents
Description
R Tutorial 1Econ 5201. Installing RThe main web page for the R system is http://www.r-project.org/From the main R page, you can download a copy of R by clicking on "CRAN" (Comprehensive R Archive Network) and selecting an archive. There are versions of R for Mac OS X, Windows, and Linux. They all work fairly similarly. When you start up R, you will see a "console" with some preliminary information. At the last line of text will be a ">":R version 2.5.1 (2007-06-27)Copyright (C) 2007 The R Foundation for Statistical ComputingISBN 3-900051-07-0R is free software and comes with ABSOLUTELY NO WARRANTY.You are welcome to redistribute it under certain conditions.Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English localeR is a collaborative project with many contributors.Type 'contributors()' for more information and'citation()' on how to cite R or R packages in publications.Type 'demo()' for some demos, 'help()' for on-line help, or'help.start()' for an HTML browser interface to help.Type 'q()' to quit R.> The ">" indicates the current line, where you can enter commands to R. R can be used as a calculator. For example, at the ">", try typing in "1+2" and hitting return. You should see:> 1+2[1] 3For now, ignore the "[1]". The answer returned by R is 3. Try the following commands in R, and be sure you understand what is being returned by R. > 1+2+3+4> (2/3)+23> 3^4> 4^(1/2)> ...
-
Publié par
-
Langue
English