You are on page 1of 1

> alpha=scan()

1: 7 5 9 2 1
6: 8 4 2 4 8
11:
Read 10 items
> mean=mean(alpha)
> mean
[1] 5
> median=median(alpha)
> median
[1] 4.5
> sd=sd(alpha)
> sd
[1] 2.867442
> array=array(alpha)
> array
[1] 7 5 9 2 1 8 4 2 4 8
>
A=matrix(c(9,9,5,6,9,2,5,1,9,9,1,4,8,10,4,5,4,1,8,2,5,8,2,9,4,1,2,6,3,2,9
,7,6,4,6),5,7)
>
> A
[,1] [,2] [,3] [,4] [,5] [,6] [,7]
[1,] 9 2 1 5 5 1 9
[2,] 9 5 4 4 8 2 7
[3,] 5 1 8 1 2 6 6
[4,] 6 9 10 8 9 3 4
[5,] 9 9 4 2 4 2 6
> boxplot(A)
> stem(A)

The decimal point is at the |

1 | 0000
2 | 00000
3 | 0
4 | 00000
5 | 0000
6 | 0000
7 | 0
8 | 000
9 | 0000000
10 | 0

> plot(A)
> x1=c(2,8,13,10,12,12,8,16,5,5,14)
> x1
[1] 2 8 13 10 12 12 8 16 5 5 14
> y1=c(4,16,18,13,19,16,8,5,19,6,7)
> y1
[1] 4 16 18 13 19 16 8 5 19 6 7

You might also like