Tuesday, January 8, 2013

Business App IT Lab - Session 1

R is an open source programming language and software environment for statistical computing and graphics. The R language is widely used among statisticians and data miners for developing statistical software and data analysis. Polls and surveys of data miners are showing R's popularity has increased substantially in recent years.


Assignment 1


Draw a histogram after concatenating 3 data points.


Solution 
Following commands are used
> x<-c(1,2,3)
> plot(x, type = "h")



Assignment 2

Plot both the lines and points with xlab, ylab and names

Solution
Following command is used
> plot(zcol1,type="b",main="NSE Summary",xlab="Time",ylab="Indices")



Assignment 3

Create a scatter plot using High and Low value

Solution
Following commands are used


High Values
> zcol1<-z[,3]

Low values
> zcol2<-z[,4]

To plot the scatter plot 
> plot(zcol1,zcol2)





Assignment 4

Evaluate volatility for the given period

Solution
As indicated in the below screenshot

No comments:

Post a Comment