Skip to content

Commit ef466c0

Browse files
minor ed
1 parent 23e651d commit ef466c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/reading.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,14 +632,15 @@ the source is `SQL [?? x 6]` and the output says `... more rows` at the end
632632
and a database type `sqlite` is listed.
633633
We didn't use the `collect` function because we are not ready to bring the data into R yet. \index{collect}
634634
We can still use the database to do some work to obtain *only* the small amount of data we want to work with locally
635-
in R Let's add the second part of our database query: selecting only the `language` and `mother_tongue` columns
635+
in R. Let's add the second part of our database query: selecting only the `language` and `mother_tongue` columns
636636
using the `select` function.
637637

638638
```{r}
639639
aboriginal_lang_selected_db <- select(aboriginal_lang_db, language, mother_tongue)
640640
aboriginal_lang_selected_db
641641
```
642642

643+
Now you can see that the database will return only the two columns we asked for with the `select` function.
643644
In order to actually retrieve this data in R as a data frame,
644645
we use the `collect` function. \index{filter}
645646
Below you will see that after running `collect`, R knows that the retrieved

0 commit comments

Comments
 (0)