Skip to content

Commit 8758303

Browse files
Remove non-ASCII character
1 parent e739be8 commit 8758303

4 files changed

Lines changed: 22 additions & 4 deletions

File tree

data-raw/county-dataprep.R

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
# Load previous version of openintro package containing previous version
2-
# of county data frame. I took the last commit on 2020-06-23:
1+
# Load previous version of openintro package containing previous version of data frame.
2+
# I took the last commit on 2020-06-23:
33
# remotes::install_github("https://github.com/OpenIntroStat/openintro@d2bac268faf3ec566deb79baf106f274c6de38a2", force = TRUE)
44
library(openintro)
55
library(usethis)
6+
library(dplyr)
7+
8+
county <- openintro::county
9+
10+
county <- county %>%
11+
mutate(
12+
name = as.character(name),
13+
name = if_else(name == "Hoonah–Angoon Census Area", "Hoonah Angoon Census Area", name)
14+
)
615

716
# Add to package
817
use_data(county, overwrite = TRUE)
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
# Load previous version of openintro package containing previous version
2-
# of county data frame. I took the last commit on 2020-06-23:
1+
# Load previous version of openintro package containing previous version of data frame.
2+
# I took the last commit on 2020-06-23:
33
# remotes::install_github("https://github.com/OpenIntroStat/openintro@d2bac268faf3ec566deb79baf106f274c6de38a2", force = TRUE)
44
library(openintro)
55
library(usethis)
6+
library(dplyr)
7+
8+
county_complete <- openintro::county_complete
9+
10+
county_complete <- county_complete %>%
11+
mutate(
12+
name = as.character(name),
13+
name = if_else(name == "Hoonah–Angoon Census Area", "Hoonah Angoon Census Area", name)
14+
)
615

716
# Add to package
817
use_data(county_complete, overwrite = TRUE)

data/county.rda

-3.49 KB
Binary file not shown.

data/county_complete.rda

-1 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)