Skip to content

Commit

Permalink
Replace excel screenshots by embedded file contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Nov 11, 2023
1 parent 2529ca1 commit 2ef647d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions episodes/11-supp-read-write-csv.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ write.csv(carSpeeds, file = 'data/car-speeds-cleaned.csv')

If you open the file, you'll see that it has header names, because the data had headers within R, but that there are numbers in the first column.

<img src="fig/01-supp-csv-with-row-nums.png" alt="csv written without row.names argument" />
```{embed file = "data/car-speeds-cleaned.csv"}
```

### The `row.names` Argument

Expand All @@ -267,7 +268,8 @@ write.csv(carSpeeds, file = 'data/car-speeds-cleaned.csv', row.names = FALSE)

Now we see:

<img src="fig/01-supp-csv-without-row-nums.png" alt="csv written with row.names argument" />
```{embed file = "data/car-speeds-cleaned.csv"}
```

::::::::::::::::::::::::::::::::::::::::: callout

Expand Down Expand Up @@ -306,9 +308,8 @@ write.csv(carSpeeds,

And we see:

<img src="fig/01-supp-csv-with-special-NA.png" alt="csv written with -9999 as NA" />


```{embed file = "data/car-speeds-cleaned.csv"}
```

:::::::::::::::::::::::::::::::::::::::: keypoints

Expand Down
Binary file removed episodes/fig/01-supp-csv-with-row-nums.png
Binary file not shown.
Binary file removed episodes/fig/01-supp-csv-with-special-NA.png
Binary file not shown.
Binary file removed episodes/fig/01-supp-csv-without-row-nums.png
Binary file not shown.

0 comments on commit 2ef647d

Please sign in to comment.