Skip to content

Commit

Permalink
Update datasets (addresses #600)
Browse files Browse the repository at this point in the history
  • Loading branch information
clifmckee committed Jan 14, 2025
1 parent 2e5c764 commit 6f3681d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions modules/Statistics/Statistics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ cor.test(x, y = NULL, alternative(c("two.sided", "less", "greater")),

## Correlation {.small}

Using the Charm City Circulator data

```{r cor1, comment="", message = FALSE}
circ <- read_csv("https://jhudatascience.org/intro_to_r/data/Charm_City_Circulator_Ridership.csv")
head(circ)
Expand Down
4 changes: 2 additions & 2 deletions modules/Statistics/lab/Statistics_Lab.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ knitr::opts_chunk$set(echo = TRUE)

### 1.1

Load the packages needed in this lab. Then, read in the following child mortality data. Assign it to the "mort" variable. Change its first column name from `...1` into `country`. You can find the data here: https://jhudatascience.org/intro_to_r/data/mortality.csv
Load the packages needed in this lab. Then, read in the following child mortality data by country. Assign it to the "mort" variable. Change its first column name from `...1` into `country`. You can find the data here: https://jhudatascience.org/intro_to_r/data/mortality.csv.

Note that the data has lots of `NA` values - don't worry if you see that.

Expand Down Expand Up @@ -66,7 +66,7 @@ Perform a t-test to determine if there is evidence of a difference between child

### 2.1

Read in the Kaggle cars auction dataset. Assign it to the "cars" variable. You can find the data here: http://jhudatascience.org/intro_to_r/data/kaggleCarAuction.csv.
Read in the Kaggle used car auction dataset (https://www.kaggle.com/datasets/tunguz/used-car-auction-prices). Assign it to the "cars" variable. You can find the data here: http://jhudatascience.org/intro_to_r/data/kaggleCarAuction.csv.

```{r 2.1response}
Expand Down
4 changes: 2 additions & 2 deletions modules/Statistics/lab/Statistics_Lab_Key.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ knitr::opts_chunk$set(echo = TRUE)

### 1.1

Load the packages needed in this lab. Then, read in the following child mortality data. Assign it to the "mort" variable. Change its first column name from `...1` into `country`. You can find the data here: https://jhudatascience.org/intro_to_r/data/mortality.csv
Load the packages needed in this lab. Then, read in the following child mortality data by country. Assign it to the "mort" variable. Change its first column name from `...1` into `country`. You can find the data here: https://jhudatascience.org/intro_to_r/data/mortality.csv.

Note that the data has lots of `NA` values - don't worry if you see that.

Expand Down Expand Up @@ -85,7 +85,7 @@ tidy(t.test(x, y))

### 2.1

Read in the Kaggle cars auction dataset. Assign it to the "cars" variable. You can find the data here: http://jhudatascience.org/intro_to_r/data/kaggleCarAuction.csv.
Read in the Kaggle used car auction dataset (https://www.kaggle.com/datasets/tunguz/used-car-auction-prices). Assign it to the "cars" variable. You can find the data here: http://jhudatascience.org/intro_to_r/data/kaggleCarAuction.csv.

```{r 2.1response}
cars <- read_csv("http://jhudatascience.org/intro_to_r/data/kaggleCarAuction.csv")
Expand Down

0 comments on commit 6f3681d

Please sign in to comment.