This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
#18 febrero
D=data.frame(greenhouse_gas_emissions_industry_and_household_september_2025_quarter_intensity)
head(D,n=3)
names(D)
summary(D$Data_value)
1.298*1000000
#LA MEDIA O PROMEDIO ESTA ALREDEDOR DE 1.298.000 kilotones de CO2+
3401 # USANDO LA MEDIANA
sort(table(D$Data_value))
hist(D$Data_value,breaks=6)
Varianza
```{read.csv(C:-gas-emissions-industry-and-household-september-2025-quarter-intensity.csv)}
``` r
summary(cars)
## speed dist
## Min. : 4.0 Min. : 2.00
## 1st Qu.:12.0 1st Qu.: 26.00
## Median :15.0 Median : 36.00
## Mean :15.4 Mean : 42.98
## 3rd Qu.:19.0 3rd Qu.: 56.00
## Max. :25.0 Max. :120.00
La varianza mide la dispersión de un conjunto de datos respecto a su media. Representa el promedio de los cuadrados de las diferencias entre cada valor y la media aritmética.
Ejemplo:
#MEDIDA DE VARIABILIDAD
var(D$Data_value)
sqrt(var(D$Data_value)) # Desviacion de los datos
sd(D$Data_value)
Coeficiente de Variuacion
(sd(D$Data_value)/mean(D$Data_value))*100
Rango
# max(D$Data_value)-min(D$Data_value)
#quantile(D$Data_value,0.25)
You can also embed plots, for example:
Note that the echo = FALSE parameter was added to the
code chunk to prevent printing of the R code that generated the
plot.