From fdd03b0d2387e8c178f458b59b77dec001dd2792 Mon Sep 17 00:00:00 2001 From: Edoardo Mancini Date: Thu, 27 Jul 2023 07:46:39 +0000 Subject: [PATCH] #119 fixed erroneous @params --- NAMESPACE | 1 - R/derive_var_bcvacritxfl.R | 6 ++---- man/derive_var_bcvacritxfl.Rd | 8 +++----- man/derive_var_bcvacritxfl_util.Rd | 4 +++- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/NAMESPACE b/NAMESPACE index 54d696a4..e24c55fa 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -18,7 +18,6 @@ importFrom(admiraldev,assert_symbol) importFrom(admiraldev,assert_vars) importFrom(admiraldev,expect_dfs_equal) importFrom(admiraldev,expr_c) -importFrom(admiraldev,quo_c) importFrom(admiraldev,vars2chr) importFrom(dplyr,arrange) importFrom(dplyr,bind_cols) diff --git a/R/derive_var_bcvacritxfl.R b/R/derive_var_bcvacritxfl.R index 112c9ad8..85d2b180 100644 --- a/R/derive_var_bcvacritxfl.R +++ b/R/derive_var_bcvacritxfl.R @@ -4,7 +4,7 @@ #' its corresponding flag `CRITxFL` to an ADBCVA dataset. #' #' @param dataset Input dataset (ADBCVA). -#' @param dataset Variable with respect to which `CRITx`/`CRITxFL` are derived +#' @param crit_var Variable with respect to which `CRITx`/`CRITxFL` are derived #' (usually `CHG` or `AVAL`). #' @param critx_text String containing the text for `CRITx` variable. #' @param critxfl_cond String containing R code detailing the criterion to be satisfied @@ -72,10 +72,8 @@ derive_var_bcvacritxfl_util <- function(dataset, #' ADBCVA dataset. #' #' @param dataset Input dataset containing BCVA data (usually `ADBCVA`). -#' @param dataset Variable with respect to which `CRITx`/`CRITxFL` are derived +#' @param crit_var Variable with respect to which `CRITx`/`CRITxFL` are derived #' (usually `CHG` or `AVAL`). -#' @param paramcds Vector of `PARAMCD` values for which to derive `CRITx` and `CRITxFL`. -#' @param basetype `BASETYPE` value for which to derive `CRITx` and `CRITxFL`. #' @param additional_text string containing additional text to append to `CRITx` #' @param critxfl_index positive integer detailing the first value of x to use #' in "CRITxFL". If not supplied, the function takes the first available value of diff --git a/man/derive_var_bcvacritxfl.Rd b/man/derive_var_bcvacritxfl.Rd index 4b1a0d04..a18f8ddf 100644 --- a/man/derive_var_bcvacritxfl.Rd +++ b/man/derive_var_bcvacritxfl.Rd @@ -15,7 +15,9 @@ derive_var_bcvacritxfl( ) } \arguments{ -\item{dataset}{Variable with respect to which \code{CRITx}/\code{CRITxFL} are derived +\item{dataset}{Input dataset containing BCVA data (usually \code{ADBCVA}).} + +\item{crit_var}{Variable with respect to which \code{CRITx}/\code{CRITxFL} are derived (usually \code{CHG} or \code{AVAL}).} \item{bcva_ranges}{List containing one or more numeric vectors of length 2. For each @@ -38,10 +40,6 @@ then leave as NULL.} \item{critxfl_index}{positive integer detailing the first value of x to use in "CRITxFL". If not supplied, the function takes the first available value of x, counting up from x = 1.} - -\item{paramcds}{Vector of \code{PARAMCD} values for which to derive \code{CRITx} and \code{CRITxFL}.} - -\item{basetype}{\code{BASETYPE} value for which to derive \code{CRITx} and \code{CRITxFL}.} } \value{ The input ADBCVA dataset with additional column pairs\code{CRITx}, \code{CRITxFL}. diff --git a/man/derive_var_bcvacritxfl_util.Rd b/man/derive_var_bcvacritxfl_util.Rd index 14fd3561..6bf95a14 100644 --- a/man/derive_var_bcvacritxfl_util.Rd +++ b/man/derive_var_bcvacritxfl_util.Rd @@ -16,7 +16,9 @@ derive_var_bcvacritxfl_util( ) } \arguments{ -\item{dataset}{Variable with respect to which \code{CRITx}/\code{CRITxFL} are derived +\item{dataset}{Input dataset (ADBCVA).} + +\item{crit_var}{Variable with respect to which \code{CRITx}/\code{CRITxFL} are derived (usually \code{CHG} or \code{AVAL}).} \item{critx_text}{String containing the text for \code{CRITx} variable.}