Skip to content

Commit

Permalink
Swap dbWriteTable with copy_to
Browse files Browse the repository at this point in the history
  • Loading branch information
mkirzon committed Jan 16, 2019
1 parent 264d1e8 commit 245da7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 03-data-transformation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ planes <- nycflights13::planes

2. Using `DBI`, copy the `planes` data to the datawarehouse as a temporary table, and load it to a variable
```{r}
dbWriteTable(con, "planes", planes, temporary = TRUE)
copy_to(con, planes, "planes", temporary = TRUE)
tbl_planes <- tbl(con, "planes")
```

Expand Down
2 changes: 1 addition & 1 deletion assets/workbook/03-data-transformation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ planes <- nycflights13::planes

2. Using `DBI`, copy the `planes` data to the datawarehouse as a temporary table, and load it to a variable
```{r}
dbWriteTable(con, "planes", planes, temporary = TRUE)
copy_to(con, planes, "planes", temporary = TRUE)
tbl_planes <- tbl(con, "planes")
```

Expand Down

0 comments on commit 245da7e

Please sign in to comment.