New game
Download
Get Academic Plan
Share game
Fill in the Blanks
Fill in the Blanks

Ordenación programación R

Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

Ordenación programación R

Fill in the Blanks

Played 1 %Accuracy 100 Average time 07:44

About this activity

Ordenación programación R

Created by

Spain

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
Ordenación programación R
 

Fill in the Blanks

Ordenación programación ROnline version

Ordenación programación R

by María Dolores 1 Lage Veiga
1

vector vector ii ordenación índices ii índices ordenación

Ordenación
Continuemos con el data . frame cars .
Se puede comprobar que los datos disponibles están ordenados por los valores de speed .
A continuación haremos la ordenación utilizando los valores de dist .
Para ello utilizaremos el conocido como de de .
Este vector establece el orden en que tienen que ser elegidos los elementos para obtener la ordenación deseada .
Veamos un ejemplo sencillo :
x < - c ( 2 . 5 , 4 . 3 , 1 . 2 , 3 . 1 , 5 . 0 ) # valores originales
< - order ( x )
# vector de ordenación
## [ 1 ] 3 1 4 2 5
x [ ii ] # valores ordenados
## [ 1 ] 1 . 2 2 . 5 3 . 1 4 . 3 5 . 0
En el caso de vectores , el procedimiento anterior se podría hacer directamente con : sort ( x )

Sin embargo , para ordenar data . frames será necesario la utilización del de de .
A continuación , los datos de cars ordenados por dist :
ii < - order ( cars$dist ) # Vector de índices de ordenación
cars2 < - cars [ ii , ] # Datos ordenados por dist
head ( cars2 )
## speed dist velocidad distancia
## 1 4 2 6 . 437388 0 . 6096074
## 3 7 4 11 . 265430 1 . 2192148
## 2 4 10 6 . 437388 3 . 0480371
## 6 9 10 14 . 484124 3 . 0480371
## 12 12 14 19 . 312165 4 . 2672519
## 5 8 16 12 . 874777 4 . 8768593

Are you sure you want to leave the page?

If you leave the page, you will lose your game progress.