-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update roxygen header of 3 r files with examples #38
Conversation
Code Coverage Summary
Diff against main
Results for commit: ad2979c Minimum allowed coverage is ♻️ This comment has been updated with latest results |
R/matching.R
Outdated
@@ -294,62 +311,18 @@ plot.maicplus_estimate_weights <- function(x, ggplot = FALSE, | |||
#' @param processed_agd a data frame, object returned after using \code{\link{process_agd}} or | |||
#' aggregated data following the same naming convention | |||
#' | |||
#' @examples | |||
#' load(system.file("extdata", "agd.rda", package = "maicplus", mustWork = TRUE)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MikeJSeo Do you have the code to generate agd.rda
? Could you add the code in data-raw/agd.R
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I just stored this data.frame manually:
agd <- data.frame(
STUDY = "Lung study",
ARM = "Total",
N = 300,
AGE_MEAN = 51,
AGE_MEDIAN = 49,
AGE_SD = 3.25,
SEX_MALE_PROP = 147/300,
ECOG0_PROP = 0.40,
ECOG0_COUNT = 40,
SMOKE_PROP = 58/(300-5),
N_PR_THER_MEDIAN = 2
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need agd.rda? Let's just do this?
target_pop <- read.csv(system.file("extdata","aggregate_data_example_1.csv", package = "maicplus", mustWork =
agd <- process_agd(target_pop)
R/matching.R
Outdated
@@ -294,62 +311,18 @@ plot.maicplus_estimate_weights <- function(x, ggplot = FALSE, | |||
#' @param processed_agd a data frame, object returned after using \code{\link{process_agd}} or | |||
#' aggregated data following the same naming convention | |||
#' | |||
#' @examples | |||
#' load(system.file("extdata", "agd.rda", package = "maicplus", mustWork = TRUE)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I just stored this data.frame manually:
agd <- data.frame(
STUDY = "Lung study",
ARM = "Total",
N = 300,
AGE_MEAN = 51,
AGE_MEDIAN = 49,
AGE_SD = 3.25,
SEX_MALE_PROP = 147/300,
ECOG0_PROP = 0.40,
ECOG0_COUNT = 40,
SMOKE_PROP = 58/(300-5),
N_PR_THER_MEDIAN = 2
)
R/matching.R
Outdated
@@ -294,62 +311,18 @@ plot.maicplus_estimate_weights <- function(x, ggplot = FALSE, | |||
#' @param processed_agd a data frame, object returned after using \code{\link{process_agd}} or | |||
#' aggregated data following the same naming convention | |||
#' | |||
#' @examples | |||
#' load(system.file("extdata", "agd.rda", package = "maicplus", mustWork = TRUE)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we even need agd.rda? Let's just do this?
target_pop <- read.csv(system.file("extdata","aggregate_data_example_1.csv", package = "maicplus", mustWork =
agd <- process_agd(target_pop)
…to 29-add-examples-to-functions
Co-authored-by: Michael Seo <swj8874@gmail.com>
…to 29-add-examples-to-functions
No description provided.