R/R4VN-package.R

#' R4VN: Publication-Ready Statistical Tables for Health Research
#'
#' @description
#' R4VN provides short, consistent commands for data management, descriptive
#' statistics, epidemiological analysis, regression models, publication-ready
#' tables, and graphs. Commands can use an explicit data frame or the active
#' data selected by `usedf()`.
#'
#' @details
#' Main workflows include:
#' \itemize{
#'   \item `usedf()`: select active data and optionally link it to a visible
#'     data-frame object;
#'   \item `tab1()`, `sum1()`, and `describe()`: inspect variables quickly in
#'     the console, including nested stratification with `by = c(...)`;
#'   \item `vars()`, `tab()`, and `tabmulti()`: create descriptive,
#'     comparative, and regression tables;
#'   \item `ttest()`, `ranksum()`, `signrank()`, `kwallis()`, `friedman()`,
#'     and `swilk()`: common parametric and nonparametric analyses;
#'   \item `tabexport()`: export one or more results.
#' }
#'
#' @importFrom graphics legend lines plot.new text
#' @importFrom stats aggregate na.exclude na.omit predict runif setNames xtabs
#' @importFrom utils capture.output head tail type.convert
#' @keywords internal
"_PACKAGE"

# NSE symbols created only inside model-evaluation environments. Declaring
# them prevents false-positive NOTES from R CMD check without exporting them.
utils::globalVariables(c(
  ".r4vn_internal_weights_7e4f9c",
  ".r4vn_internal_offset_7e4f9c",
  ".prof", "Correlation", "Counterfactual", "Fitted", "Forecast",
  "Lag", "Observed", "Residual", "Time", "Value",
  "label", "observed", "predicted", "x", "y", "ymax", "ymin"
))

Try the R4VN package in your browser

Any scripts or data that you put into this service are public.

R4VN documentation built on Sept. 30, 2026, 5:13 p.m.