Skip to content

Commit 60aa4d3

Browse files
committed
better spacing
1 parent 9925825 commit 60aa4d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/week06/_code/using_dbplyr-06-wed-r.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Here we want to use DuckDB, loading a file database:
2525
conn <- DBI::dbConnect(duckdb::duckdb(), dbdir = "~/GitHub/gitRDS/bren-eds213-data/database.db") # adapt the path as needed
2626
```
2727

28-
All the magic is right here. A dataframe view of a database table.
28+
All the magic is right here. A data frame view of a database table.
2929

3030
```{r}
3131
DBI::dbListTables(conn)
@@ -47,19 +47,19 @@ Enters `dbplyr` -- your dplyr for databases
4747

4848
```{r}
4949
species %>%
50-
filter(Relevance=="Study species") %>%
50+
filter(Relevance == "Study species") %>%
5151
select(Code, Scientific_name) %>%
5252
arrange(Scientific_name) %>%
5353
head(3)
5454
```
5555

56-
What!? how this could worked?!
56+
Wait what!? How this could have worked?!
5757

5858
### Add show_query() to the end to see what SQL it is sending!
5959

6060
```{r}
6161
species %>%
62-
filter(Relevance=="Study species") %>%
62+
filter(Relevance == "Study species") %>%
6363
select(Scientific_name) %>%
6464
arrange(Scientific_name) %>%
6565
head(3) %>%

0 commit comments

Comments
 (0)