R LanguageINTRODUCTION:R is an open source programming language and software environment for statistical computingand grap...
Variance:var(x)               [The variance of x i.e.1, 2, 3 is 1]Linear Model:lm_1 < - lm(y~x)     [The linear model betw...
Upcoming SlideShare
Loading in …5
×

R language

724 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
724
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

R language

  1. 1. R LanguageINTRODUCTION:R is an open source programming language and software environment for statistical computingand graphics. The R language is widely used among statisticians and data miners for developingstatistical software and data analysis. But, we are going to integrate R with Hadoop in order tomanage BigData efficiently.BASIC COMMANDS:GetDirectory:getwd() [ R language is case sensitive ]Assignment:Single value:s < - 3 or s = 3 [The value of s is 3]Multiple values:s < - c (1, 2, 3) [The value of s is 1, 2, 3]Ors < - c (1:3) [The value of s is 1, 2, 3]Mean:mean(x) [The mean of x i.e. 1, 2, 3 is 2]
  2. 2. Variance:var(x) [The variance of x i.e.1, 2, 3 is 1]Linear Model:lm_1 < - lm(y~x) [The linear model between two variables will be shown]Graphical Representation:plot (lm_1) [The linear model will be graphically represented]Summary:summary (lm_1) [The summary of the linear model will be shown]List of variables:ls () [ The list of all variables used will be shown]Reading files:read.table ( file=”sample.csv”) [Files can be read in this way, mostly csv files]CONCLUSION:Some basic commands are being noted down. These may help to gain some primary knowledgeon R. R with Hadoop is still in progress.

×