Biomedical Engineering Theory And Practice/Introduction of R

What is R?
R is a open source commandline programming language for statistical computing and graphics. R is freely available under GNU license. It is useful in various area such as Business, Industry, Government, Medicie and Academia. R was initially started by Robert Gentleman and Ross Ihaka in 1993—also known as “R & R” of the Statistics Department of the University of Auckland. R is based on the S language developed at Bell Laboratories by Rick Becker, John Chambers and Allan Wilks, and also forms the basis of the S-PLUS systems. Since mid-1997 there has been a core group with write access to the R source. The full list of changes is maintained in the "R News" file at CRAN. Some highlights are listed below. R is an interpreted and command-line programming language. R supports procedural programming with functions and, for some functions, object-oriented programming with generic functions. R can interface with programming languages like C, C++, Java, .NET  and Python.

CRAN
CRAN, the Comprehensive R Archive Network is the network of the site which contains R source code, R binaries, extension Packages, Documentation and FAQ. left menu of CRAN website consist of CRAN, About R, software and Documentation. CRAN menu in CRAN mirror is composed of Mirrors, What's new?,Task Views and Search.'Mirrors' in CRAN mirror shows how to download and install R according to your location and platforms. And frequently asked questions and answers are here. 'What's new?'report changes in R, bug fixes in R including the anounce of the new package.'Task views' organized R packages according to the specific field. 'Search' linked some website which can search help files, manuals, and mailing list archives. About R in CRAN consists of R Homepage and R journal. R Homepage links to The R Project for Statistical Computing. R journal links to https://journal.r-project.org. https://journal.r-project.org is the open access, refered journal of the R project for statistical computing. It features short to medium length articles covering topics that might be of interest to users or developers of R, including short introductions to R extension packages, hints for programming in R, hints for newcomers and proof how the technique can be used in the certain area of current interest using R. Software in CRAN mirror is composed of R Sources, R Binaries, Packages and Other. Documentation in CRAN mirror consists of Manuals,FAQs and Contributed. Manuals are edited by the R development core team and can be downloaded as PDF files, EPUB files, or directly browsed as HTML.The R FAQ is the general collection and includes useful information for users on all platforms.Contributed contains manuals, tutorials and so on by users.

How to install R
If you are a Mac user, download the latest .dmg file and follow the directions.In the case of "Windows", click on "base" and then on the link that downloads R for Windows. (In the link, the current version number appears after “R”.) When the dialog box opens, click "Run" and a “Setup Wizard” should appear. Keep clicking "Next" until the Wizard is finish.
 * 1) Go to http://www.r-project.org/.
 * 2) Click on the download R link.
 * 3) Then select a location closest to you.
 * 4) Click on your operating system (Linux, MacOS X, Windows) and follow directions

RStudio
R programming language has a lot of open source graphical user interface including well-known RStudio. The most popular GUI,RStudio is written in the C++ programming language and uses the Qt for its graphical user interface. Work on RStudio started at around December 2010, and the first public BETA version (v0.92) was officially announced in February 2011. RStudio is available in two editions: RStudio Desktop, where the program is run locally as a regular desktop application; and RStudio Server.

RStudio screen is composed of Editor Window,Console Window,Project Window and File/Current Directory/loaded package/Help/Viewer.

Use R Package
R is quite powerful, incorporating packages which are collections of R functions, data, and compiled code in a well-defined format. The directory where packages are stored is called the library. R, itself, includes a standard set of packages when it is installed. Once installed, they have to be loaded into the session to be used. More than 5,800 additional packages are available at the Comprehensive R Archive Network (CRAN), Bioconductor, Omegahat, Github and other repositories.
 * R packages availability
 * List of installed packages in the computer or the server. This list is displayed in R editor.
 * List of currently active packages in the computer or the server.
 * Install new packages
 * library(" ") load the library
 * Documentation of packages could be listed in editor.
 * Upgrade packages
 * Remove packages

How to Enter Data

 * Sequential Data
 * Non-Sequential Data
 * List Object