Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 4 Code Typo #5

Open
calv2n opened this issue Jan 30, 2025 · 0 comments
Open

Chapter 4 Code Typo #5

calv2n opened this issue Jan 30, 2025 · 0 comments

Comments

@calv2n
Copy link

calv2n commented Jan 30, 2025

Hi,

I believe there is a typo in 4.6 where we should be multiplying the population by 1 million in the mutate function, but the code written is division:

...
    # code that multiplies population by 1 million
    data <- data %>% 
      mutate(population = population / 1000000)
...

(should be):

...
    # code that multiplies population by 1 million
    data <- data %>% 
      mutate(population = population * 1000000)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant