Sunteți pe pagina 1din 2

> datos=c(18,25,31,9,8,10,63,85,21,19,4,17,18,16,20,21,12,14,34,30)

> length(datos)

[1] 20

> sort(datos)

[1] 4 8 9 10 12 14 16 17 18 18 19 20 21 21 25 30 31 34 63 85

> stem(datos)

The decimal point is 1 digit(s) to the right of the |

0 | 48902467889

2 | 0115014

4|

6|3

8|5

> mean(datos)

[1] 23.75

> median(datos)

[1] 18.5

> table(datos)

datos

4 8 9 10 12 14 16 17 18 19 20 21 25 30 31 34 63 85

1 1 1 1 1 1 1 1 2 1 1 2 1 1 1 1 1 1

> quantile(datos,25)

Error in quantile.default(datos, 25) : 'probs' outside [0,1]

> quantile(datos,0.25)

25%

13.5

> quantile(datos,50)

Error in quantile.default(datos, 50) : 'probs' outside [0,1]

> quantile(dato,0.50)
Error in quantile(dato, 0.5) : object 'dato' not found

> quantile(datos,0.50)

50%

18.5

> quantile(datos,0.75)

75%

26.25

> quantile(datos)

0% 25% 50% 75% 100%

4.00 13.50 18.50 26.25 85.00

> quantile(datos,c(0.10,0.60,0.83,0.95))

10% 60% 83% 95%

8.90 20.40 30.77 64.10

> boxplot(datos)

> boxplot(datos,horizontal=T)

S-ar putea să vă placă și