Tuesday, January 8, 2013

Business Applications Lab Session #1 8 Jan 2013


Q1) Show the histogram of a single dimensional vector
Ans)
Commands used
> x<-c p="p">
> plot(x,type="h")


Q2) Show the histogram of NSE data (selected columns from a set of data)
Ans)

> plot(zcol1,type="h")
Q3) Plot both lines & points of the NSE data (selected columns from a set of data)
Ans)

>plot(zcol1,type="b",main="nse data1",xlab="time",ylab="nse")



Q4) Plot the scatter plot of the NSE data (selected columns from a set of data)
Ans)

plot(zcol2,type="p",main="nse data2",xlab="time",ylab="nse")
Q5) Merge the data from the two columns and find the variance
Ans)
> mergedata<-c p="p" zcol1="zcol1" zcol2="zcol2">
> range(mergedata)
[1] 4888.20 6020.75









No comments:

Post a Comment