tareacluster
tareacluster
Dr. Cruz
Buy on Leanpub

BASE 1

Descarga el archivo de abajo para empezar tu proyecto :

Deberas correr los chunck de abajo para empezar el proyecto :

Figure 1. CORRE este chunk para Cargar los Datos
1 set.seed(351)
2 df <- USArrests
3 murder3 <- df[sample(nrow(df), 45),]
4 rm(df)
Figure 2. Explicación de la base
 1 This data set contains statistics, in arrests per 100000 residents 
 2 for assault, murder, and rape in each of the 50 US states in 1973. 
 3 
 4 Also given is the percent of the population living in urban areas.
 5 
 6 A data frame with 45 observations on 4 variables.
 7 [,1]    Murder  numeric Murder arrests (per 100,000)
 8 [,4]    Rape    numeric Rape arrests (per 100,000)
 9 [,3]    UrbanPop    numeric Percent urban population
10 [,4]    Rape    numeric Rape arrests (per 100,000)
Figure 3. Escalamos la base y usaremos murder4
1 murder4 <- as.data.frame(scale(murder3))

BASE 2

Descarga los archivo de abajo y ponlos en el mimismo directorio para empezar tu proyecto :

Figure 4. CORRE este chunk para Cargar los Datos
1 fuel2 <- read.csv("combustible.csv")
2 fuel2$Carrocería <- NULL
3 fuel2$Caja_cambios <- NULL
4 fuel2$Marchas <- NULL
5 fuel2$Combustible <- NULL
Figure 5. Escalamos la base y usaremos fuel3
1 fuel3 <- as.data.frame(scale(fuel2))
2 boxplot(fuel3) # Ahora todas las variables están en el mismo rango

BASE 3

Here’s a paragraph before the figure.

Here’s a paragraph after the figure