Skip to content

Commit

Permalink
Merge pull request #23 from mkirzon/master
Browse files Browse the repository at this point in the history
Swap dbWriteTable with copy_to
  • Loading branch information
edgararuiz authored Jan 16, 2019
2 parents 264d1e8 + 245da7e commit 1fcae75
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 1fcae75

Please sign in to comment.