luifrancgom / marketing_research_and_analytics

Repository associated to the course Marketing research and analytics
5 stars 0 forks source link

Problema para calcular la media en una base de datos #1

Open testemailmarketing opened 6 months ago

testemailmarketing commented 6 months ago

Describe the problem in general that you are having with R or Quarto

Estimado profesor tengo un problema al calcular la media de una variable en una base de datos que viene por defecto en R

Point out a Minimal Reproducible Example (MRE) in relation to the problem you are having

head(airquality)
#>   Ozone Solar.R Wind Temp Month Day
#> 1    41     190  7.4   67     5   1
#> 2    36     118  8.0   72     5   2
#> 3    12     149 12.6   74     5   3
#> 4    18     313 11.5   62     5   4
#> 5    NA      NA 14.3   56     5   5
#> 6    28      NA 14.9   66     5   6
mean(airquality$Ozone)
#> [1] NA

Created on 2024-03-28 with reprex v2.1.0

Settings (please complete the following information)