R programming is used to gives the statistically data modeling with textual and graphically representation as a output with nice format. R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, …) and graphical techniques, and is highly extensible.
Here is the first step of start of R programming to to understand the basic syntax in R. You can practice more and more from the http://tryr.codeschool.com/ .
Installation(Window):
Click
on the official R programming site (http://www.r-project.org).
Search for the Download section
Click
“download R” to get the proper mirror. This should take you to a
page something like bellow.
Choose
the link for Iowa State University or any other mirror you like.
Choose
your operating system. In the tutorial case it was selected Microsoft
Windows.
Click
“install R for the first time”.
Click
on “download” to download the installer (for Windows ).
Click
on “Save file” to save the installer to your computer.
Double
click the .exe file for installation.
Click
“Run” to start the installation. Follow the steps. Click next,
accept agreement, select your installation folder and finish the
installation.
Working on R
Select
the R application from your start menu. All coding style should be
same what you practiced on R code school.
1. Get and set
working directory
getwd()
setwd("/path/to/your/working/directory")
List of commands
Here
are some commands that you can use in your R script.
-
Command/wordDescriptionExample#The characters after are considered comment#this is a commentcatPrint a message to the console (like System.out.println in Java)cat("Hello World!\n")sourceExecute a R script file previously createdsource("myScript.r")<-Assign a value to a variableone <- 1Hello <- "Hello"install.packagesDownload and install a packageinstall.packages("rpart")libraryLoad a installed library to your R scriptload(rpart)
OBS:
R is case sensitive, so Variable is different from variable.
Thank you !!!
Excellent Sharing. Want to become a Data scientist learn Data Science with R Training | Data Science with Python Training at GangBoard. SAS Training
ReplyDeleteThanks for the introduction about R programming language :)
ReplyDeleteRegards,
Android training|Android Training in Chennai
.It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.
ReplyDeleteR Programming Online Training|
SAS Online Training
Tableau Online Training|
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here. rprogramming training in bangalore
ReplyDeleteThanks for sharing the blog
ReplyDeletesalesforce CRM Training
devops online course
full stack online training