Skip to content

Commit f0649f5

Browse files
Merge pull request #76 from rsquaredacademy/develop
Develop
2 parents f938cae + 22941dc commit f0649f5

15 files changed

+244
-295
lines changed

CONTRIBUTING.MD

Lines changed: 0 additions & 45 deletions
This file was deleted.

ISSUE_TEMPLATE.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

R/blr-multi-model-fit-stats.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,20 @@ print.blr_multi_model_fit_stats <- function(x, ...) {
7070
nrow() %>%
7171
seq_len(.)
7272

73-
col_names <- c("Measures", paste("Model", model_id))
73+
col_names <- c(paste("Model", model_id))
7474
print(multi_fit_stats_table(df, measures, col_names))
7575

7676
}
7777

7878

7979
multi_fit_stats_table <- function(df, measures, col_names) {
8080

81-
df %>%
82-
t() %>%
83-
round(3) %>%
84-
as_tibble() %>%
85-
add_column(measures, .before = 1) %>%
86-
as.data.frame() %>%
87-
set_colnames(col_names)
81+
df %>%
82+
t() %>%
83+
round(3) %>%
84+
magrittr::set_colnames(col_names) %>%
85+
tibble::as_tibble() %>%
86+
tibble::add_column(Measures = measures, .before = 1) %>%
87+
as.data.frame()
8888

8989
}

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ options(tibble.width = Inf)
1616
# blorr <img src="hex_blorr.png" height="100px" align="right" />
1717

1818
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/blorr)](https://cran.r-project.org/package=blorr) [![cran checks](https://cranchecks.info/badges/summary/blorr)](https://cran.r-project.org/web/checks/check_results_blorr.html)
19-
[![Travis-CI Build Status](https://travis-ci.org/rsquaredacademy/olsrr.svg?branch=master)](https://travis-ci.org/rsquaredacademy/olsrr) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/rsquaredacademy/olsrr?branch=master&svg=true)](https://ci.appveyor.com/project/rsquaredacademy/olsrr) [![](https://cranlogs.r-pkg.org/badges/grand-total/blorr)](https://cran.r-project.org/package=blorr) [![Coverage status](https://codecov.io/gh/rsquaredacademy/blorr/branch/master/graph/badge.svg)](https://codecov.io/github/rsquaredacademy/blorr?branch=master) ![](https://img.shields.io/badge/lifecycle-maturing-blue.svg)
19+
[![Travis-CI Build Status](https://travis-ci.org/rsquaredacademy/blorr.svg?branch=master)](https://travis-ci.org/rsquaredacademy/blorr) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/rsquaredacademy/blorr?branch=master&svg=true)](https://ci.appveyor.com/project/rsquaredacademy/blorr) [![](https://cranlogs.r-pkg.org/badges/grand-total/blorr)](https://cran.r-project.org/package=blorr) [![Coverage status](https://codecov.io/gh/rsquaredacademy/blorr/branch/master/graph/badge.svg)](https://codecov.io/github/rsquaredacademy/blorr?branch=master) ![](https://img.shields.io/badge/lifecycle-maturing-blue.svg)
2020

2121
## Overview
2222

README.md

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,29 @@
11

22
<!-- README.md is generated from README.Rmd. Please edit that file -->
3-
blorr <img src="hex_blorr.png" height="100px" align="right" />
4-
==============================================================
53

6-
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/blorr)](https://cran.r-project.org/package=blorr) [![cran checks](https://cranchecks.info/badges/summary/blorr)](https://cran.r-project.org/web/checks/check_results_blorr.html) [![Travis-CI Build Status](https://travis-ci.org/rsquaredacademy/olsrr.svg?branch=master)](https://travis-ci.org/rsquaredacademy/olsrr) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/rsquaredacademy/olsrr?branch=master&svg=true)](https://ci.appveyor.com/project/rsquaredacademy/olsrr) [![](https://cranlogs.r-pkg.org/badges/grand-total/blorr)](https://cran.r-project.org/package=blorr) [![Coverage status](https://codecov.io/gh/rsquaredacademy/blorr/branch/master/graph/badge.svg)](https://codecov.io/github/rsquaredacademy/blorr?branch=master) ![](https://img.shields.io/badge/lifecycle-maturing-blue.svg)
4+
# blorr <img src="hex_blorr.png" height="100px" align="right" />
75

8-
Overview
9-
--------
6+
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/blorr)](https://cran.r-project.org/package=blorr)
7+
[![cran
8+
checks](https://cranchecks.info/badges/summary/blorr)](https://cran.r-project.org/web/checks/check_results_blorr.html)
9+
[![Travis-CI Build
10+
Status](https://travis-ci.org/rsquaredacademy/blorr.svg?branch=master)](https://travis-ci.org/rsquaredacademy/blorr)
11+
[![AppVeyor Build
12+
Status](https://ci.appveyor.com/api/projects/status/github/rsquaredacademy/blorr?branch=master&svg=true)](https://ci.appveyor.com/project/rsquaredacademy/blorr)
13+
[![](https://cranlogs.r-pkg.org/badges/grand-total/blorr)](https://cran.r-project.org/package=blorr)
14+
[![Coverage
15+
status](https://codecov.io/gh/rsquaredacademy/blorr/branch/master/graph/badge.svg)](https://codecov.io/github/rsquaredacademy/blorr?branch=master)
16+
![](https://img.shields.io/badge/lifecycle-maturing-blue.svg)
1017

11-
Tools designed to make it easier for users, particularly beginner/intermediate R users to build logistic regression models. Includes comprehensive regression output, variable selection procedures, model validation techniques and a 'shiny' app for interactive model building.
18+
## Overview
1219

13-
Installation
14-
------------
20+
Tools designed to make it easier for users, particularly
21+
beginner/intermediate R users to build logistic regression models.
22+
Includes comprehensive regression output, variable selection procedures,
23+
model validation techniques and a ‘shiny’ app for interactive model
24+
building.
25+
26+
## Installation
1527

1628
``` r
1729
# Install blorr from CRAN
@@ -22,18 +34,16 @@ install.packages("blorr")
2234
devtools::install_github("rsquaredacademy/blorr")
2335
```
2436

25-
Shiny App
26-
---------
37+
## Shiny App
2738

2839
Use `blr_launch_app()` to explore the package using a shiny app.
2940

30-
Articles
31-
--------
41+
## Articles
3242

33-
- [A Short Introduction to the blorr Package](https://blorr.rsquaredacademy.com/articles/introduction.html)
43+
- [A Short Introduction to the blorr
44+
Package](https://blorr.rsquaredacademy.com/articles/introduction.html)
3445

35-
Usage
36-
-----
46+
## Usage
3747

3848
blorr uses consistent prefix `blr_*` for easy tab completion.
3949

@@ -209,6 +219,9 @@ blr_test_hosmer_lemeshow(model)
209219

210220
``` r
211221
blr_gains_table(model)
222+
#> Warning: Calling `as_tibble()` on a vector is discouraged, because the
223+
#> behavior is likely to change in the future. Use `enframe(name = NULL)`
224+
#> instead.
212225
#> # A tibble: 10 x 12
213226
#> decile total `1` `0` ks tp tn fp fn sensitivity
214227
#> <dbl> <int> <int> <int> <dbl> <int> <int> <int> <int> <dbl>
@@ -244,7 +257,7 @@ model %>%
244257
plot()
245258
```
246259

247-
![](tools/README-lift-1.png)
260+
![](tools/README-lift-1.png)<!-- -->
248261

249262
### ROC Curve
250263

@@ -254,7 +267,7 @@ model %>%
254267
blr_roc_curve()
255268
```
256269

257-
![](tools/README-roc-1.png)
270+
![](tools/README-roc-1.png)<!-- -->
258271

259272
### KS Chart
260273

@@ -264,22 +277,25 @@ model %>%
264277
blr_ks_chart()
265278
```
266279

267-
![](tools/README-kschart-1.png)
280+
![](tools/README-kschart-1.png)<!-- -->
268281

269282
### Lorenz Curve
270283

271284
``` r
272285
blr_lorenz_curve(model)
273286
```
274287

275-
![](tools/README-unnamed-chunk-2-1.png)
288+
![](tools/README-unnamed-chunk-2-1.png)<!-- -->
276289

277-
Getting Help
278-
------------
290+
## Getting Help
279291

280-
If you encounter a bug, please file a minimal reproducible example using [reprex](https://reprex.tidyverse.org/index.html) on github. For questions and clarifications, use [StackOverflow](https://stackoverflow.com/).
292+
If you encounter a bug, please file a minimal reproducible example using
293+
[reprex](https://reprex.tidyverse.org/index.html) on github. For
294+
questions and clarifications, use
295+
[StackOverflow](https://stackoverflow.com/).
281296

282-
Code of Conduct
283-
---------------
297+
## Code of Conduct
284298

285-
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.
299+
Please note that this project is released with a [Contributor Code of
300+
Conduct](CONDUCT.md). By participating in this project you agree to
301+
abide by its terms.

SUPPORT.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/CONDUCT.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)