Professional Documents
Culture Documents
Div: A
Roll no :48
i. Height
Name: wasim chamanshaikh
Div: A
Roll no :48
Ii. Age
Name: wasim chamanshaikh
Div: A
Roll no :48
Toyota Corolla:
Quantitative Variable:
i.KM
Name: wasim chamanshaikh
Div: A
Roll no :48
R R 4.1.Z -/
> data<- read . c sv (II 1e . c hoose {J }
> V T ew (d ata }
> d1m (d ata }
1 14 6 10
> str (data}
’ data . frame ' • 14 3 6 oo s . of 10 var 1ab1 es :
S Pr J ce : In t 1 3 S 00 13 7 50 13 9 50 149 S 0 13 750 129 5 0 16900 18600 21500 129 5 0 ...
I Age : int 23 25 24 26 30 3Z 27 30 27 23 ...
I KM : int 46986 72937 41711 48000 38500 61000 94612 75889 19700 71138 ...
$ FuelType : chr "Diesel" "Diesel" "Diesel" "Diesel" .,
$ HP ’ int 90 90 9O 90 90 90 90 90 192 69 .
$ MetColor . int 1 1 1 0 0 0 1 1 0 0
I Automatic: int 0 0 0 0 0 0 0 0 0 0
I CC : int 2000 2000 2000 2000 2000 2000 2000 2000 1800 1900...
5 Doors : int 3 3 3 3 3 3 3 3 3 5
SWeight : int 1165 1165 1165 1165 1170 1170 1245 1245 11B5 1105 ...
> # KI orete rs oata
> var=data$KY
> mx=max (var )
ii. CC
Name: wasim chamanshaikh
Div: A
Roll no :48
R R 4.1.2 -/
L1? 2000
wJ dth= {mx- mn } / 5
wJ dth
scores Freq
,1 .
2 (I . 44e +03 , 1. S 8 e+03 § 0
5 (1. 86 e 0 2 e+03 2
OF requen cy Tab1e aI CC
scor es * req
1 (1. 3e+03 , 1. 44e+ 03 168
2 (1. 44e+03 , 1. 58e+ 03 0
3 (1. 58e+03 , 1.72e+03J 8 54
4 (1.7ze+03, 1.86e+03s 14
5 (1.86e+03,2e+03J 152
Qualitative
Variable: i.Metcolor
Name: wasim chamanshaikh
Div: A
Roll no :48
Ii. Automatic
Name: wasim chamanshaikh
Div: A
Roll no :48
R R ^ 1.2 -/
> #Automat1 c Data
> var=data$Au to ma t 4 c
>
> nn=m1n }
> nn
§1§ 0
> wJ dth= {mx- mn) / 5
> wJ dth
§1§ 0.2
> b ns=seq (mn , rrx , w1 dth)
> score s=cu t (var , b1n s}
> table(scores)
sco re s
(0, O . 2 § (0. 2 , 0. 4§ (0 . 4, 0. 6 ] (0. 6 , 0. 8§ (0. 8, 1§
0 0 0 0 80
> I ransform (tabl e (scor e s} }
score s Freq
1 (0, 0.2] 0
2 (0 . 2, 0. 4] 0
3 (0 . 4, 0. 6 ] 0
4(0.6,0.8] 0
S (0.8,1] 80
> $Frequency Table o* Automatic
> *req_table=trans*orm(tableCscoresJ)
> *req_table
score s Freq 1
(0, 0. 2 § 0
2 (0 . 2, 0. 4§ 0
3 (0. 4, 0. 6 0
4 (0. 6, 0. 8] 0
S (0. 8, 1] 80
Automatic Cars
1400
1200
1000
0800
Automatic