From f76e13c109c4c724154bf5eb93e95b5dd7cead03 Mon Sep 17 00:00:00 2001 From: Saranjeet Kaur Date: Wed, 30 Oct 2024 00:18:31 +0000 Subject: [PATCH] data processing steps update --- R/data-process.R | 2 +- man/DataProcessing.Rd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/R/data-process.R b/R/data-process.R index a31cc44..d2e2e3f 100644 --- a/R/data-process.R +++ b/R/data-process.R @@ -7,7 +7,7 @@ #' #' 1. **Read the data**: This function reads the data from the location specified `data <- readRDS("data.rds")`. #' -#' 1. **`gen_data_mean`**: Calculates weighted mean values for various metrics over years `data_weighted <- gen_data_mean(data)`. +#' 1. **`gen_data_weighted`**: Calculates weighted mean values for various metrics over years `data_weighted <- gen_data_weighted(data)`. #' #' 1. **`gen_data_weighted_rf`**: Calculates the differences between intervention and baseline values for risk factors `data_weighted_rf_wide_collapse <- gen_data_weighted_rf(data_weighted)`. #' diff --git a/man/DataProcessing.Rd b/man/DataProcessing.Rd index 14797a6..18da100 100644 --- a/man/DataProcessing.Rd +++ b/man/DataProcessing.Rd @@ -11,7 +11,7 @@ Below is a description of how to use these functions in sequence. \subsection{Step-by-Step Usage:}{ \enumerate{ \item \strong{Read the data}: This function reads the data from the location specified \code{data <- readRDS("data.rds")}. -\item \strong{\code{gen_data_mean}}: Calculates weighted mean values for various metrics over years \code{data_weighted <- gen_data_mean(data)}. +\item \strong{\code{gen_data_weighted}}: Calculates weighted mean values for various metrics over years \code{data_weighted <- gen_data_weighted(data)}. \item \strong{\code{gen_data_weighted_rf}}: Calculates the differences between intervention and baseline values for risk factors \code{data_weighted_rf_wide_collapse <- gen_data_weighted_rf(data_weighted)}. \item \strong{\code{gen_data_weighted_ds}}: Calculates the differences between intervention and baseline values for incidences \code{data_weighted_ds_wide_collapse <- gen_data_weighted_ds(data_weighted)}. \item \strong{\code{gen_data_weighted_burden}}: Calculates the differences between intervention and baseline values for burden of disease \code{data_weighted_burden_wide_collapse <- gen_data_weighted_burden(data_weighted)}.