01.11.2014 Views

Prácticas de Estadística en R - Departamento de Estadística e ...

Prácticas de Estadística en R - Departamento de Estadística e ...

Prácticas de Estadística en R - Departamento de Estadística e ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Índice g<strong>en</strong>eral<br />

1. Introducción 1<br />

1.1. ¿Qué pue<strong>de</strong>s <strong>en</strong>contrar <strong>en</strong> este libro? . . . . . . . . . . . . . . . . . . . . . 1<br />

1.2. Los conjuntos <strong>de</strong> datos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1<br />

2. El software R 3<br />

2.1. Introducción . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3<br />

2.2. Comandos y conceptos básicos . . . . . . . . . . . . . . . . . . . . . . . . 4<br />

2.3. Objetos y operaciones básicas . . . . . . . . . . . . . . . . . . . . . . . . . 5<br />

2.3.1. Vectores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5<br />

2.3.2. Arrays y matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . 7<br />

2.4. Procedimi<strong>en</strong>tos gráficos . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11<br />

2.5. Programando <strong>en</strong> R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13<br />

2.6. Librerías . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14<br />

2.7. Importando datos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15<br />

3. Un ejemplo para apr<strong>en</strong><strong>de</strong>r R. El Hitori 17<br />

3.1. Introducción . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17<br />

3.2. Práctica <strong>en</strong> R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17<br />

3.3. El código . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18<br />

3.3.1. Función para dibujar el tablero . . . . . . . . . . . . . . . . . . . . 18<br />

3.3.2. Función principal . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18<br />

4. Ejercicios para practicar con R 21<br />

4.1. Obt<strong>en</strong>i<strong>en</strong>do ayuda <strong>en</strong> R . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />

4.2. Directorio <strong>de</strong> trabajo (“workspace”) . . . . . . . . . . . . . . . . . . . . . 22<br />

4.3. Objetos y operaciones básicas . . . . . . . . . . . . . . . . . . . . . . . . . 22<br />

4.3.1. Operaciones con vectores . . . . . . . . . . . . . . . . . . . . . . . 22<br />

4.3.2. Arrays y matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . 24<br />

4.3.3. Listas, data frames y factores . . . . . . . . . . . . . . . . . . . . . 25<br />

4.4. Gráficos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

4.5. Programando <strong>en</strong> R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26<br />

4.6. Ejercicios <strong>de</strong> exám<strong>en</strong>es . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!