Professional Documents
Culture Documents
No Task R Commands
1
2
Select only final > 60 from file grades
and view few top rows
Dr Vinod on Select Split & Transform 8971073111, vinodanalytics@gmail.com , vinod@inurture.co.in Skype: vinodanalytics1 Page 1
Select Split Transform
Dr Vinod on Select Split & Transform 8971073111, vinodanalytics@gmail.com , vinod@inurture.co.in Skype: vinodanalytics1 Page 2
Select Split Transform
14 Type
> grades$cateth<-grades$ethnicity
> grades$cateth[grades$cateth == 1|grades$cateth == 3|grades$cateth == 5]=1
> grades$cateth[grades$cateth == 2|grades$cateth == 4] = 2
> head(grades)
Sr_No id lastname firstname gender ethnicity year lowup section gpa
1 1 106484 VILLARRUZ ALFRED 2 2 2 1 2 1.18
2 2 108642 VALAZQUEZ SCOTT 2 4 3 2 2 2.19
3 3 127285 GALVEZ JACKIE 1 4 4 2 2 2.46
4 4 132931 OSBORNE ANN 1 3 2 1 2 3.98
Converting ethnicity into two
5 5 140219 GUADIZ VALERIE 1 2 4 2 1 1.84
categories [category 1= 1, 3& 5; 6 6 142630 RANGIFO TANIECE 1 4 3 2 3 3.90
category 2 = 2 & 4 extrc review quiz1 quiz2 quiz3 quiz4 quiz5 final total percent grade
1 1 2 6 5 7 6 3 53 80 64 D
2 2 1 10 10 7 6 9 54 96 77 C
3 2 2 10 7 8 9 7 57 98 78 C
4 1 1 7 8 7 7 6 68 103 82 B
5 1 1 7 8 9 8 10 66 108 86 B
6 1 2 10 10 10 9 9 74 122 98 A
passfail cateth
1 P 2
2 P 2
3 P 2
4 P 1
5 P 2
6 P 2
15 Take out 20% observations randomly
from the file grades
16 View case numbers selected above
Dr Vinod on Select Split & Transform 8971073111, vinodanalytics@gmail.com , vinod@inurture.co.in Skype: vinodanalytics1 Page 3