Skip to content

Commit

Permalink
-package alias r-lib/roxygen2#1491
Browse files Browse the repository at this point in the history
  • Loading branch information
trangdata committed Sep 28, 2023
1 parent bbb1940 commit 41918c9
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ License: GPL-2 | file LICENSE
URL: https://github.com/EpistasisLab/pmlbr
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.0
RoxygenNote: 7.2.3
4 changes: 2 additions & 2 deletions R/nearest.R
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ compute_imbalance <- function(target_col){
get_type <- function(x, include_binary = FALSE){
x <- stats::na.omit(x)

if (class(x) == 'numeric'){
if (inherits(x, 'numeric')){
return('continuous')
} else if (class(x) %in% c('integer', 'factor')){
} else if (inherits(x, 'integer') || inherits(x, 'factor')){
if (include_binary){
if (length(unique(x)) == 2) return('binary')}
return('categorical')
Expand Down
6 changes: 6 additions & 0 deletions R/pmlbr-package.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#' @keywords internal
"_PACKAGE"

## usethis namespace: start
## usethis namespace: end
NULL
15 changes: 7 additions & 8 deletions man/fetch_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified man/figures/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions man/pmlbr-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 41918c9

Please sign in to comment.