luifrancgom / marketing_research_and_analytics

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

Error in glimpse #4

Open Juancortes7 opened 2 months ago

Juancortes7 commented 2 months ago

Buenos días profe

En el desarrollo del capítulo 4 al final de la grabación de abril 24 me genera este error

image

luifrancgom commented 2 months ago

Please share a Minimal Reproducible Example (MRE) in relation to the problem you are having as it is mention in the message when you post an issue.

Also specify all the information because I can not help you if you don't show me what you are doing and how you are doing it.

You need to show me your source code so I can replicate what you are doing.

Also check out that you are loading the tidyverse library first. Take into account that when you code the computer run the code sequentially.

For example, this will work:

# Libraries ----
library(tidyverse)

# Exploring data ----
glimpse(iris)
#> Rows: 150
#> Columns: 5
#> $ Sepal.Length <dbl> 5.1, 4.9, 4.7, 4.6, 5.0, 5.4, 4.6, 5.0, 4.4, 4.9, 5.4, 4.…
#> $ Sepal.Width  <dbl> 3.5, 3.0, 3.2, 3.1, 3.6, 3.9, 3.4, 3.4, 2.9, 3.1, 3.7, 3.…
#> $ Petal.Length <dbl> 1.4, 1.4, 1.3, 1.5, 1.4, 1.7, 1.4, 1.5, 1.4, 1.5, 1.5, 1.…
#> $ Petal.Width  <dbl> 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2, 0.2, 0.1, 0.2, 0.…
#> $ Species      <fct> setosa, setosa, setosa, setosa, setosa, setosa, setosa, s…

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

But this will not work if you have not yet loaded the tidyverse library:

# Exploring data ----
glimpse(iris)
#> Error in glimpse(iris): could not find function "glimpse"

# Libraries ----
library(tidyverse)

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

Juancortes7 commented 2 months ago

Yes sr you're right, the problem it's was I didn't run sequentially. So I check the process again and that's works.

A quick question, have you today time for talking about report part 2? I mean for microsoft teams

Thank you so much