Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jkapar committed Jun 27, 2024
1 parent f16e473 commit 975de11
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
8 changes: 5 additions & 3 deletions R/shortcut_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#'
#' @param x Input data. Integer variables are recoded as ordered factors with
#' a warning. See Details.
#' @param query Data frame of samples, optionally comprising just a subset of
#' training features. See Details of \code{lik}. Is set to \code{x} if \code{zero}.
#' @param ... Extra parameters to be passed to \code{adversarial_rf}, \code{forde}
#' and \code{lik}.
#'
Expand Down Expand Up @@ -71,6 +73,8 @@ darf <- function(x, query = NULL, ...) {
#'
#' @param x Input data. Integer variables are recoded as ordered factors with
#' a warning. See Details.
#' @param n_synth Number of synthetic samples to generate. Is set to \code{nrow(x)} if
#' \code{NULL}.
#' @param ... Extra parameters to be passed to \code{adversarial_rf}, \code{forde}
#' and \code{forge}.
#'
Expand Down Expand Up @@ -165,7 +169,7 @@ rarf <- function(x, n_synth = NULL, ...) {
#' @export
#'

earf <- function(x, query = NULL, ...) {
earf <- function(x, ...) {
arg_names <- list(arf = names(as.list(args(adversarial_rf))),
forde = names(as.list(args(forde))),
expct = names(as.list(args(expct))))
Expand All @@ -180,9 +184,7 @@ earf <- function(x, query = NULL, ...) {

if (!("params" %in% names(forde_args))) params <- do.call(forde, c(arf = list(arf), x = list(x), forde_args))

if (is.null(query)) query <- names(x)
do.call(expct, c(params = list(params),
query = list(query),
expct_args))

}
5 changes: 4 additions & 1 deletion man/darf.Rd

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

4 changes: 2 additions & 2 deletions man/earf.Rd

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

5 changes: 4 additions & 1 deletion man/rarf.Rd

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

0 comments on commit 975de11

Please sign in to comment.