# Placed the original csv file into a github file and this code pulls from the github link
collegeDistance <- read.csv("https://raw.githubusercontent.com/GitHub-Vlad/Data-Science/main/CollegeDistance.csv", header = TRUE)
#Displaying the file which is being pulled from github link.
#I will display the first twenty rows of the new data frame subset
head(collegeDistance,100)
##       X gender ethnicity score fcollege mcollege home urban unemp wage distance
## 1     1   male     other 39.15      yes       no  yes   yes   6.2 8.09      0.2
## 2     2 female     other 48.87       no       no  yes   yes   6.2 8.09      0.2
## 3     3   male     other 48.74       no       no  yes   yes   6.2 8.09      0.2
## 4     4   male      afam 40.40       no       no  yes   yes   6.2 8.09      0.2
## 5     5 female     other 40.48       no       no   no   yes   5.6 8.09      0.4
## 6     6   male     other 54.71       no       no  yes   yes   5.6 8.09      0.4
## 7     7 female     other 56.07       no       no  yes    no   7.2 8.85      0.4
## 8     8 female     other 54.85       no       no  yes    no   7.2 8.85      0.4
## 9     9   male     other 64.74      yes       no  yes   yes   5.9 8.09      3.0
## 10   10 female     other 56.06       no       no  yes   yes   5.9 8.09      3.0
## 11   11 female     other 42.22       no       no  yes   yes   5.9 8.09      3.0
## 12   12 female      afam 61.18       no      yes  yes   yes   5.9 8.09      3.0
## 13   13   male     other 59.85       no       no  yes    no   7.2 8.85      0.1
## 14   14 female     other 58.77      yes       no  yes    no   7.2 8.85      0.1
## 15   15 female      afam 53.72      yes      yes  yes    no   7.2 8.85      0.1
## 16   16   male     other 61.52       no       no  yes    no   7.2 8.85      0.1
## 17   17 female     other 52.53       no       no  yes    no   7.2 8.85      0.1
## 18   18 female     other 45.01       no       no  yes    no   7.2 8.85      0.1
## 19   19 female     other 57.71       no       no  yes    no   7.2 8.85      0.1
## 20   20 female     other 59.36      yes      yes  yes    no   7.2 8.85      0.1
## 21   21 female     other 50.93       no       no  yes    no   7.7 7.04      0.5
## 22   22   male     other 59.56      yes       no  yes    no   7.7 7.04      0.5
## 23   23   male     other 58.46      yes      yes  yes    no   7.7 7.04      0.5
## 24   24 female     other 55.70       no       no   no    no   7.7 7.04      0.5
## 25   25   male     other 60.81       no       no  yes    no   7.7 7.04      0.5
## 26   26 female      afam 40.60       no       no  yes    no   5.4 8.85      0.9
## 27   27 female     other 49.99       no       no  yes    no   5.4 8.85      0.9
## 28   28   male     other 59.69       no       no  yes   yes   5.1 8.85      0.5
## 29   29   male     other 60.33       no       no  yes   yes   5.1 8.85      0.5
## 30   30 female     other 60.14      yes       no  yes   yes   5.1 8.85      0.5
## 31   31 female     other 68.58      yes      yes  yes   yes   5.1 8.85      0.5
## 32   32 female     other 42.61       no       no  yes   yes   5.1 8.85      0.5
## 33   33   male     other 58.66      yes       no  yes   yes   5.1 8.85      0.5
## 34   34   male     other 58.14       no       no  yes   yes   5.1 8.85      0.5
## 35   35 female     other 58.95       no       no  yes   yes   5.1 8.85      0.5
## 36   36   male     other 49.37       no       no  yes   yes   5.4 8.85      0.2
## 37   37 female     other 47.25       no      yes   no   yes   5.4 8.85      0.2
## 38   38   male     other 61.03      yes       no   no    no   6.2 8.09      0.6
## 39   39   male     other 54.35       no       no   no    no   6.2 8.09      0.6
## 40   40 female     other 68.12      yes      yes  yes    no   6.2 8.09      0.6
## 41   41   male     other 70.10      yes       no  yes    no   6.2 8.09      0.6
## 42   42 female     other 58.61       no       no   no    no   6.2 8.09      0.6
## 43   43 female     other 48.57       no       no  yes    no   6.2 8.09      0.6
## 44   44 female     other 51.11       no       no  yes    no   6.2 8.09      0.6
## 45   45 female     other 39.41       no       no  yes    no   6.2 8.09      0.6
## 46   46 female     other 54.98      yes       no  yes    no   7.2 7.04      0.1
## 47   47 female      afam 41.59      yes      yes   no    no   7.2 7.04      0.1
## 48   48 female     other 55.32       no       no  yes    no   7.2 7.04      0.1
## 49   49   male  hispanic 42.23       no       no  yes    no   7.2 7.04      0.1
## 50   50 female     other 62.00       no       no  yes    no   7.2 7.04      0.1
## 51   51   male  hispanic 49.65       no       no   no    no   7.2 7.04      0.1
## 52   52 female     other 44.96       no       no  yes    no   7.2 7.04      0.1
## 53   53 female     other 37.31       no       no  yes    no   7.2 7.04      0.1
## 54   54   male     other 39.87       no       no  yes    no   7.2 7.04      0.1
## 55   55 female     other 56.44       no       no  yes    no   5.4 8.85      0.1
## 56   56   male      afam 42.65       no       no  yes    no   5.4 8.85      0.1
## 57   57 female     other 60.05      yes      yes  yes    no   5.4 8.85      0.1
## 58   58 female     other 38.32       no       no   no    no   5.4 8.85      0.1
## 59   59 female     other 65.87      yes       no  yes    no   5.4 8.85      0.1
## 60   60   male     other 44.65       no       no  yes    no   5.4 8.85      0.1
## 61   61   male     other 57.74       no       no  yes    no   5.5 8.09      1.5
## 62   62   male     other 60.38      yes       no  yes    no   5.5 8.09      1.5
## 63   63   male     other 62.77       no       no   no    no   5.5 8.09      1.5
## 64   64   male     other 59.73       no       no  yes    no   5.5 8.09      1.5
## 65   65 female     other 57.06      yes       no  yes    no   5.5 8.09      1.5
## 66   66 female     other 58.02       no       no  yes    no   5.5 8.09      1.5
## 67   67 female     other 54.74       no       no  yes    no   5.5 8.09      1.5
## 68   68 female     other 46.28       no       no  yes    no   6.9 7.04      2.0
## 69   69 female     other 60.40       no       no  yes    no   6.9 7.04      2.0
## 70   70   male     other 53.21       no       no  yes    no   6.9 7.04      2.0
## 71   71 female     other 60.93       no       no  yes    no   6.5 8.09      1.5
## 72   72 female     other 48.44       no       no  yes    no   6.5 8.09      1.5
## 73   73 female     other 45.31       no       no  yes    no   7.7 7.04      2.0
## 74   74   male     other 60.22      yes       no  yes    no   7.7 7.04      2.0
## 75   75   male     other 56.42       no       no  yes    no   7.7 7.04      2.0
## 76   76 female     other 62.27       no      yes  yes    no   7.7 7.04      2.0
## 77   77   male     other 51.84      yes      yes   no    no   4.4 8.09      0.5
## 78   78 female     other 57.55       no       no  yes    no   4.4 8.09      0.5
## 79   79 female     other 57.62      yes       no  yes    no   4.4 8.09      0.5
## 80   80   male     other 57.50       no      yes  yes    no   4.4 8.09      0.5
## 81   81   male     other 65.31      yes       no  yes    no   7.5 8.09      0.5
## 82   82   male     other 50.62      yes       no  yes    no   7.5 8.09      0.5
## 83   83   male     other 51.23       no       no  yes    no   7.5 8.09      0.5
## 84   84 female     other 53.55       no       no   no    no   7.5 8.09      0.5
## 85   85 female     other 48.52       no       no  yes    no   7.5 8.09      0.5
## 86   86 female     other 43.41       no       no  yes    no   7.5 8.09      0.5
## 87   87 female     other 57.50       no       no  yes    no   7.5 8.09      0.5
## 88   88 female     other 51.32       no       no  yes    no   5.9 7.09      1.2
## 89   89 female     other 36.37       no       no   no    no   5.9 7.09      1.2
## 90   90 female     other 43.80       no       no  yes    no   5.9 7.09      1.2
## 91   91 female     other 45.14       no       no  yes    no   5.9 7.09      1.2
## 92   92 female     other 63.26       no       no  yes    no   5.9 7.09      1.2
## 93   93 female     other 51.32      yes      yes  yes    no   5.9 7.09      1.2
## 94   94   male     other 44.23       no       no  yes    no   5.9 7.09      1.2
## 95   95 female     other 42.93       no       no  yes    no   5.3 8.09      0.1
## 96   96 female     other 47.60       no       no  yes    no   5.3 8.09      0.1
## 97   97   male     other 56.47      yes       no  yes    no   5.3 8.09      0.1
## 98   98   male     other 64.69       no       no  yes    no   5.3 8.09      0.1
## 99   99 female     other 62.35      yes      yes  yes    no   5.3 8.09      0.1
## 100 100 female     other 48.96       no       no  yes    no   6.1 7.69      2.5
##     tuition education income region
## 1   0.88915        12   high  other
## 2   0.88915        12    low  other
## 3   0.88915        12    low  other
## 4   0.88915        12    low  other
## 5   0.88915        13    low  other
## 6   0.88915        12    low  other
## 7   0.84988        13    low  other
## 8   0.84988        15    low  other
## 9   0.88915        13    low  other
## 10  0.88915        15    low  other
## 11  0.88915        12   high  other
## 12  0.88915        14   high  other
## 13  0.84988        15    low  other
## 14  0.84988        17   high  other
## 15  0.84988        14    low  other
## 16  0.84988        15    low  other
## 17  0.84988        12   high  other
## 18  0.84988        12    low  other
## 19  0.84988        16    low  other
## 20  0.84988        16   high  other
## 21  0.90300        13    low  other
## 22  0.90300        14   high  other
## 23  0.90300        13    low  other
## 24  0.90300        16    low  other
## 25  0.90300        15    low  other
## 26  0.84988        12    low  other
## 27  0.84988        12    low  other
## 28  0.84988        15    low  other
## 29  0.84988        16    low  other
## 30  0.84988        12   high  other
## 31  0.84988        16   high  other
## 32  0.84988        12    low  other
## 33  0.84988        16   high  other
## 34  0.84988        14    low  other
## 35  0.84988        16    low  other
## 36  0.84988        17    low  other
## 37  0.84988        16    low  other
## 38  0.88915        14   high  other
## 39  0.88915        15   high  other
## 40  0.88915        15   high  other
## 41  0.88915        17   high  other
## 42  0.88915        15    low  other
## 43  0.88915        12    low  other
## 44  0.88915        12    low  other
## 45  0.88915        15    low  other
## 46  0.90300        16   high  other
## 47  0.90300        12    low  other
## 48  0.90300        13    low  other
## 49  0.90300        12    low  other
## 50  0.90300        16    low  other
## 51  0.90300        15    low  other
## 52  0.90300        12    low  other
## 53  0.90300        12    low  other
## 54  0.90300        12    low  other
## 55  0.84988        16    low  other
## 56  0.84988        12    low  other
## 57  0.84988        15   high  other
## 58  0.84988        12    low  other
## 59  0.84988        15   high  other
## 60  0.84988        13    low  other
## 61  0.88915        16   high  other
## 62  0.88915        12   high  other
## 63  0.88915        12   high  other
## 64  0.88915        16    low  other
## 65  0.88915        16   high  other
## 66  0.88915        15    low  other
## 67  0.88915        12    low  other
## 68  0.90300        14    low  other
## 69  0.90300        12    low  other
## 70  0.90300        18   high  other
## 71  0.88915        14    low  other
## 72  0.88915        15    low  other
## 73  0.90300        12    low  other
## 74  0.90300        12   high  other
## 75  0.90300        16    low  other
## 76  0.90300        17   high  other
## 77  0.88915        18   high  other
## 78  0.88915        16   high  other
## 79  0.88915        12   high  other
## 80  0.88915        12   high  other
## 81  0.88915        16    low  other
## 82  0.88915        14   high  other
## 83  0.88915        15    low  other
## 84  0.88915        14    low  other
## 85  0.88915        12    low  other
## 86  0.88915        14    low  other
## 87  0.88915        14    low  other
## 88  1.38568        15    low  other
## 89  1.38568        12    low  other
## 90  1.38568        12    low  other
## 91  1.38568        12   high  other
## 92  1.38568        16    low  other
## 93  1.38568        17    low  other
## 94  1.38568        12    low  other
## 95  0.88915        12   high  other
## 96  0.88915        12    low  other
## 97  0.88915        13   high  other
## 98  0.88915        16    low  other
## 99  0.88915        16    low  other
## 100 1.11201        12    low  other