Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

issue with missing values in Exercise 25 in chapter 5 #526

Open
@nicholasjhorton

Description

I suspect that the counties with 0 hispanic_2017 are getting silently elided when log(hispanic_2017) is run.

I wonder if the code https://github.com/OpenIntroStat/ims/blob/7227c6e2f90b9f1cb804aa013f40ae1eba41fae3/exercises/_05-ex-explore-numerical.qmd#L572C5-L573C47 might be updated to log(1 + hispanic_2017) and the text slightly revised: logs of one plus these values.

suppressPackageStartupMessages(library(openintro))
suppressPackageStartupMessages(library(tidyverse))
county_complete |>
 select(fips, name, state, hispanic_2017) |> 
 arrange(hispanic_2017) |>
 head()
#> fips name state hispanic_2017
#> 1 28061 Jasper County Mississippi 0
#> 2 30069 Petroleum County Montana 0
#> 3 31005 Arthur County Nebraska 0
#> 4 31009 Blaine County Nebraska 0
#> 5 31115 Loup County Nebraska 0
#> 6 46061 Hanson County South Dakota 0

Created on 2026年02月13日 with reprex v2.1.1

This doesn't directly relate to #525 except both are the same exercise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /