Cargar los datos

url <- "https://raw.githubusercontent.com/rpizarrog/Machine-Learning-con-R/main/datos/datos.limpios.csv"
fifa <- read.csv(url)

Mostrar los primeros 10 registros

head(fifa, 10)
##    X.1  X              Name Age Nationality Overall Potential
## 1    1  1          L. Messi  31   Argentina      94        94
## 2    2  2 Cristiano Ronaldo  33    Portugal      94        94
## 3    3  3         Neymar Jr  26      Brazil      92        93
## 4    4  4            De Gea  27       Spain      91        93
## 5    5  5      K. De Bruyne  27     Belgium      91        92
## 6    6  6         E. Hazard  27     Belgium      91        91
## 7    7  7         L. Modric  32     Croatia      91        91
## 8    8  8         L. Suárez  31     Uruguay      91        91
## 9    9  9      Sergio Ramos  32       Spain      91        91
## 10  10 10          J. Oblak  25    Slovenia      90        93
##                   Club Preferred.Foot International.Reputation Weak.Foot
## 1         FC Barcelona           Left                        5         4
## 2             Juventus          Right                        5         4
## 3  Paris Saint-Germain          Right                        5         5
## 4    Manchester United          Right                        4         3
## 5      Manchester City          Right                        4         5
## 6              Chelsea          Right                        4         4
## 7          Real Madrid          Right                        4         4
## 8         FC Barcelona          Right                        5         4
## 9          Real Madrid          Right                        4         3
## 10     Atlético Madrid          Right                        3         3
##    Skill.Moves Height Weight Crossing Finishing HeadingAccuracy ShortPassing
## 1            4    5'7 159lbs       84        95              70           90
## 2            5    6'2 183lbs       84        94              89           81
## 3            5    5'9 150lbs       79        87              62           84
## 4            1    6'4 168lbs       17        13              21           50
## 5            4   5'11 154lbs       93        82              55           92
## 6            4    5'8 163lbs       81        84              61           89
## 7            4    5'8 146lbs       86        72              55           93
## 8            3    6'0 190lbs       77        93              77           82
## 9            3    6'0 181lbs       66        60              91           78
## 10           1    6'2 192lbs       13        11              15           29
##    Volleys Dribbling Curve FKAccuracy LongPassing BallControl Acceleration
## 1       86        97    93         94          87          96           91
## 2       87        88    81         76          77          94           89
## 3       84        96    88         87          78          95           94
## 4       13        18    21         19          51          42           57
## 5       82        86    85         83          91          91           78
## 6       80        95    83         79          83          94           94
## 7       76        90    85         78          88          93           80
## 8       88        87    86         84          64          90           86
## 9       66        63    74         72          77          84           76
## 10      13        12    13         14          26          16           43
##    SprintSpeed Agility Reactions Balance ShotPower Jumping Stamina Strength
## 1           86      91        95      95        85      68      72       59
## 2           91      87        96      70        95      95      88       79
## 3           90      96        94      84        80      61      81       49
## 4           58      60        90      43        31      67      43       64
## 5           76      79        91      77        91      63      90       75
## 6           88      95        90      94        82      56      83       66
## 7           72      93        90      94        79      68      89       58
## 8           75      82        92      83        86      69      90       83
## 9           75      78        85      66        79      93      84       83
## 10          60      67        86      49        22      76      41       78
##    LongShots Aggression Interceptions Positioning Vision Penalties Composure
## 1         94         48            22          94     94        75        96
## 2         93         63            29          95     82        85        95
## 3         82         56            36          89     87        81        94
## 4         12         38            30          12     68        40        68
## 5         91         76            61          87     94        79        88
## 6         80         54            41          87     89        86        91
## 7         82         62            83          79     92        82        84
## 8         85         87            41          92     84        85        85
## 9         59         88            90          60     63        75        82
## 10        12         34            19          11     70        11        70
##    Marking StandingTackle SlidingTackle GKDiving GKHandling GKKicking
## 1       33             28            26        6         11        15
## 2       28             31            23        7         11        15
## 3       27             24            33        9          9        15
## 4       15             21            13       90         85        87
## 5       68             58            51       15         13         5
## 6       34             27            22       11         12         6
## 7       60             76            73       13          9         7
## 8       62             45            38       27         25        31
## 9       87             92            91       11          8         9
## 10      27             12            18       86         92        78
##    GKPositioning GKReflexes     Valor Estatura PesoKgs
## 1             14          8 110500000     1.70   72.12
## 2             14         11  77000000     1.88   83.01
## 3             15         11 118500000     1.75   68.04
## 4             88         94  72000000     1.93   76.20
## 5             10         13 102000000     1.80   69.85
## 6              8          8  93000000     1.73   73.94
## 7             14          9  67000000     1.73   66.22
## 8             33         37  80000000     1.83   86.18
## 9              7         11  51000000     1.83   82.10
## 10            88         89  68000000     1.88   87.09