Skip to content

Commit 2394731

Browse files
committed
Fix bug revealed by dev dbplyr
1 parent 2cb0cd3 commit 2394731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vignettes/kmeans.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ km <- db_flights %>%
5050

5151
The `simple_kmeans_db()` function uses a progress bar to show you the current cycle, the maximum cycles it's expected to run, the current difference between the previous cycle and the current cycle, and the running time. The loop will stop once it wither has two matching consecutive cycles, or if it reaches the maximum number of cycles, as determined by the `max_repeats` argument.
5252

53-
The final **centers** are are stored in the `centers` variable of the returned object
53+
The final **centers** are are stored in the `k_center` variable of the returned object
5454
```{r}
55-
km$centers
55+
km %>% pull(k_center)
5656
```
5757

5858
The latest results are stored in the `tbl` variable of the returned object. The type of the returned table will match the type of the original source, so if it is a remote source, such as database table, then `tbl` will be a class `tbl_sql`. This will allow us to do two thing:

0 commit comments

Comments
 (0)