Skip to content

Commit e97baf0

Browse files
committed
Fix file path for spark csv files in intro to sparklyr
1 parent dce9c14 commit e97baf0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

07-intro-to-sparklyr.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ spark_mtcars %>%
4848

4949
## 7.4 - Map data
5050

51-
1. Examine the contents of the /usr/share/flights/data folder
51+
1. Examine the contents of the /usr/share/class/flights/data folder
5252

53-
2. Read the top 5 rows of the `flight_2008_1` CSV file. It is located under /usr/share/flights
53+
2. Read the top 5 rows of the `flight_2008_1` CSV file. It is located under /usr/share/class/flights/data
5454
```{r}
5555
library(readr)
56-
top_rows <- read.csv("/usr/share/flights/data/flight_2008_1.csv", nrows = 5)
56+
top_rows <- read_csv("/usr/share/class/flights/data/flight_2008_1.csv", n_max = 5)
5757
```
5858

5959
3. Create a list based on the column names, and add a list item with "character" as its value.

0 commit comments

Comments
 (0)