Skip to content

Commit e5de3af

Browse files
committed
fix urls
1 parent 20b96cb commit e5de3af

File tree

2 files changed

+24
-27
lines changed

2 files changed

+24
-27
lines changed

README.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ library(modeldb)
1010
```
1111

1212
[![R build status](https://github.com/tidymodels/modeldb/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/modeldb/actions)
13-
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/modeldb)](https://cran.r-project.org/package=modeldb)
14-
[![Codecov test coverage](https://codecov.io/gh/tidymodels/modeldb/branch/main/graph/badge.svg)](https://codecov.io/gh/tidymodels/modeldb?branch=main)
15-
[![Downloads](http://cranlogs.r-pkg.org/badges/modeldb)](http://cran.rstudio.com/package=modeldb)
13+
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/modeldb)](https://CRAN.R-project.org/package=modeldb)
14+
[![Codecov test coverage](https://codecov.io/gh/tidymodels/modeldb/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/modeldb?branch=main)
15+
[![Downloads](http://cranlogs.r-pkg.org/badges/modeldb)](https://CRAN.R-project.org/package=modeldb)
1616

1717
Fit models inside the database! **modeldb works with most database back-ends** because it leverages [dplyr](https://dplyr.tidyverse.org/) and [dbplyr](https://dbplyr.tidyverse.org/) for the final SQL translation of the algorithm. It currently supports:
1818

@@ -79,11 +79,11 @@ dbplyr::remote_query(km)
7979

8080
This project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.
8181

82-
- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://rstd.io/tidymodels-community).
82+
- For questions and discussions about tidymodels packages, modeling, and machine learning, please [post on RStudio Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).
8383

8484
- If you think you have encountered a bug, please [submit an issue](https://github.com/tidymodels/modeldb/issues).
8585

86-
- Either way, learn how to create and share a [reprex](https://rstd.io/reprex) (a minimal, reproducible example), to clearly communicate about your code. Check out [this helpful article on how to create reprexes](https://dbplyr.tidyverse.org/articles/reprex.html) for problems involving a database.
86+
- Either way, learn how to create and share a [reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html) (a minimal, reproducible example), to clearly communicate about your code. Check out [this helpful article on how to create reprexes](https://dbplyr.tidyverse.org/articles/reprex.html) for problems involving a database.
8787

8888
- Check out further details on [contributing guidelines for tidymodels packages](https://www.tidymodels.org/contribute/) and [how to get help](https://www.tidymodels.org/help/).
8989

README.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33

44
[![R build
55
status](https://github.com/tidymodels/modeldb/workflows/R-CMD-check/badge.svg)](https://github.com/tidymodels/modeldb/actions)
6-
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/modeldb)](https://cran.r-project.org/package=modeldb)
6+
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/modeldb)](https://CRAN.R-project.org/package=modeldb)
77
[![Codecov test
8-
coverage](https://codecov.io/gh/tidymodels/modeldb/branch/main/graph/badge.svg)](https://codecov.io/gh/tidymodels/modeldb?branch=main)
9-
[![Downloads](http://cranlogs.r-pkg.org/badges/modeldb)](http://cran.rstudio.com/package=modeldb)
8+
coverage](https://codecov.io/gh/tidymodels/modeldb/branch/main/graph/badge.svg)](https://app.codecov.io/gh/tidymodels/modeldb?branch=main)
9+
[![Downloads](http://cranlogs.r-pkg.org/badges/modeldb)](https://CRAN.R-project.org/package=modeldb)
1010

11-
Fit models inside the database\! **modeldb works with most database
11+
Fit models inside the database! **modeldb works with most database
1212
back-ends** because it leverages [dplyr](https://dplyr.tidyverse.org/)
1313
and [dbplyr](https://dbplyr.tidyverse.org/) for the final SQL
1414
translation of the algorithm. It currently supports:
1515

16-
- K-means clustering
16+
- K-means clustering
1717

18-
- Linear regression
18+
- Linear regression
1919

2020
## Installation
2121

@@ -51,7 +51,7 @@ tbl(con, "mtcars") %>%
5151
linear_regression_db(wt)
5252
```
5353

54-
## # A tibble: 1 x 3
54+
## # A tibble: 1 × 3
5555
## `(Intercept)` mpg qsec
5656
## <dbl> <dbl> <dbl>
5757
## 1 4.12 -0.156 0.125
@@ -67,10 +67,8 @@ To use the `simple_kmeans_db()` function, simply pipe the database back
6767
end table to the function. This returns a list object that contains two
6868
items:
6969

70-
- A sql query table with the final center assignment
71-
- A local table with the information about the centers
72-
73-
<!-- end list -->
70+
- A sql query table with the final center assignment
71+
- A local table with the information about the centers
7472

7573
``` r
7674
km <- tbl(con, "mtcars") %>%
@@ -91,7 +89,7 @@ dbplyr::remote_query(km)
9189
```
9290

9391
## <SQL> SELECT `k_center`, `k_mpg`, `k_wt`, `mpg`, `cyl`, `disp`, `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`
94-
## FROM (SELECT `LHS`.`mpg` AS `mpg`, `LHS`.`cyl` AS `cyl`, `LHS`.`disp` AS `disp`, `LHS`.`hp` AS `hp`, `LHS`.`drat` AS `drat`, `LHS`.`wt` AS `wt`, `LHS`.`qsec` AS `qsec`, `LHS`.`vs` AS `vs`, `LHS`.`am` AS `am`, `LHS`.`gear` AS `gear`, `LHS`.`carb` AS `carb`, `LHS`.`k_center` AS `k_center`, `RHS`.`k_mpg` AS `k_mpg`, `RHS`.`k_wt` AS `k_wt`
92+
## FROM (SELECT `mpg`, `cyl`, `disp`, `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`, `LHS`.`k_center` AS `k_center`, `k_mpg`, `k_wt`
9593
## FROM (SELECT `mpg`, `cyl`, `disp`, `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`, `center` AS `k_center`
9694
## FROM (SELECT `mpg`, `cyl`, `disp`, `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`, `center_1`, `center_2`, `center_3`, CASE
9795
## WHEN (`center_1` >= `center_1` AND `center_1` < `center_2` AND `center_1` < `center_3`) THEN ('center_1')
@@ -104,15 +102,14 @@ dbplyr::remote_query(km)
104102
## LEFT JOIN (SELECT `center` AS `k_center`, `mpg` AS `k_mpg`, `wt` AS `k_wt`
105103
## FROM (SELECT `center`, AVG(`mpg`) AS `mpg`, AVG(`wt`) AS `wt`
106104
## FROM (SELECT `mpg`, `wt`, `center`
107-
## FROM (SELECT *
108105
## FROM (SELECT `mpg`, `cyl`, `disp`, `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`, `center_1`, `center_2`, `center_3`, CASE
109106
## WHEN (`center_1` >= `center_1` AND `center_1` < `center_2` AND `center_1` < `center_3`) THEN ('center_1')
110107
## WHEN (`center_2` < `center_1` AND `center_2` >= `center_2` AND `center_2` < `center_3`) THEN ('center_2')
111108
## WHEN (`center_3` < `center_1` AND `center_3` < `center_2` AND `center_3` >= `center_3`) THEN ('center_3')
112109
## END AS `center`
113110
## FROM (SELECT `mpg`, `cyl`, `disp`, `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`, SQRT(((20.6428571428571 - `mpg`) * (20.6428571428571 - `mpg`)) + ((3.07214285714286 - `wt`) * (3.07214285714286 - `wt`))) AS `center_1`, SQRT(((14.4583333333333 - `mpg`) * (14.4583333333333 - `mpg`)) + ((4.05866666666667 - `wt`) * (4.05866666666667 - `wt`))) AS `center_2`, SQRT(((30.0666666666667 - `mpg`) * (30.0666666666667 - `mpg`)) + ((1.873 - `wt`) * (1.873 - `wt`))) AS `center_3`
114111
## FROM `mtcars`))
115-
## WHERE (NOT(((`center`) IS NULL)))))
112+
## WHERE (NOT(((`center`) IS NULL))))
116113
## GROUP BY `center`)) AS `RHS`
117114
## ON (`LHS`.`k_center` = `RHS`.`k_center`)
118115
## )
@@ -123,20 +120,20 @@ This project is released with a [Contributor Code of
123120
Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
124121
By contributing to this project, you agree to abide by its terms.
125122

126-
- For questions and discussions about tidymodels packages, modeling,
123+
- For questions and discussions about tidymodels packages, modeling,
127124
and machine learning, please [post on RStudio
128-
Community](https://rstd.io/tidymodels-community).
125+
Community](https://community.rstudio.com/new-topic?category_id=15&tags=tidymodels,question).
129126

130-
- If you think you have encountered a bug, please [submit an
127+
- If you think you have encountered a bug, please [submit an
131128
issue](https://github.com/tidymodels/modeldb/issues).
132129

133-
- Either way, learn how to create and share a
134-
[reprex](https://rstd.io/reprex) (a minimal, reproducible example),
135-
to clearly communicate about your code. Check out [this helpful
136-
article on how to create
130+
- Either way, learn how to create and share a
131+
[reprex](https://reprex.tidyverse.org/articles/articles/learn-reprex.html)
132+
(a minimal, reproducible example), to clearly communicate about your
133+
code. Check out [this helpful article on how to create
137134
reprexes](https://dbplyr.tidyverse.org/articles/reprex.html) for
138135
problems involving a database.
139136

140-
- Check out further details on [contributing guidelines for tidymodels
137+
- Check out further details on [contributing guidelines for tidymodels
141138
packages](https://www.tidymodels.org/contribute/) and [how to get
142139
help](https://www.tidymodels.org/help/).

0 commit comments

Comments
 (0)