EL presente informe recopila el aprendizaje desarrollado durante el curso de Programación Estadística utilizando la herramienta Rmarkdown para presentar diferentes operaciones con vectores y elementos estadísticos.
vec_01<-c(1250, 1320, 1410, 1580, 1625, 1700, 1805, 1750, 1680, 1600, 1550, 1490, 1430, 1380, 1340,1295, 1270, 1240, 1205, 1180)
vec_01
## [1] 1250 1320 1410 1580 1625 1700 1805 1750 1680 1600 1550 1490 1430 1380 1340
## [16] 1295 1270 1240 1205 1180
vec_02<-c(850, 900, 920, 950, 980, 1020, 1105, 1080, 1050, 1000, 970, 940, 910, 880, 860, 840, 820, 800, 780, 760)
vec_02
## [1] 850 900 920 950 980 1020 1105 1080 1050 1000 970 940 910 880 860
## [16] 840 820 800 780 760
vec_03<-c("Gripe", "COVID", "Gripe", "Dengue", "Gripe","COVID", "Gripe", "Dengue", "Gripe", "COVID","Gripe", "Dengue", "COVID", "Gripe", "Dengue","COVID", "Gripe", "Gripe", "COVID", "Dengue")
vec_03
## [1] "Gripe" "COVID" "Gripe" "Dengue" "Gripe" "COVID" "Gripe" "Dengue"
## [9] "Gripe" "COVID" "Gripe" "Dengue" "COVID" "Gripe" "Dengue" "COVID"
## [17] "Gripe" "Gripe" "COVID" "Dengue"
Suma<-sum(vec_01)
Suma
## [1] 29100
\[Promedio=\frac{\sum_{i=1}^{n} x_i}{n}\]
Promedio<-mean(vec_01)
Promedio
## [1] 1455
Máximo<-max(vec_01)
Minimo<-min(vec_01)
Máximo
## [1] 1805
Minimo
## [1] 1180
clasificacion <- vec_03 == "Gripe"
clasificacion
## [1] TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE TRUE FALSE
## [13] FALSE TRUE FALSE FALSE TRUE TRUE FALSE FALSE
sum(vec_03=="COVID")
## [1] 6