File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -632,14 +632,15 @@ the source is `SQL [?? x 6]` and the output says `... more rows` at the end
632
632
and a database type ` sqlite ` is listed.
633
633
We didn't use the ` collect ` function because we are not ready to bring the data into R yet. \index{collect}
634
634
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
636
636
using the ` select ` function.
637
637
638
638
``` {r}
639
639
aboriginal_lang_selected_db <- select(aboriginal_lang_db, language, mother_tongue)
640
640
aboriginal_lang_selected_db
641
641
```
642
642
643
+ Now you can see that the database will return only the two columns we asked for with the ` select ` function.
643
644
In order to actually retrieve this data in R as a data frame,
644
645
we use the ` collect ` function. \index{filter}
645
646
Below you will see that after running ` collect ` , R knows that the retrieved
You can’t perform that action at this time.
0 commit comments