-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added simple tester function for tidyeval as well as main function. T…
…ester works, main doesnt
- Loading branch information
1 parent
2ca235b
commit be4ed24
Showing
7 changed files
with
104 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
|
||
#' Test function | ||
#' | ||
#' @param .data data frame | ||
#' @param numerator tghe numearto | ||
#' @param denominator denom | ||
#' @param group the group | ||
#' | ||
#' @return a data frame stuck together | ||
#' @export | ||
#' | ||
#' @importFrom rlang .data | ||
#' | ||
tst_func <- function(.data, numerator, denominator, group){ | ||
|
||
numerator <- quo_name(enquo(numerator)) | ||
denominator <- quo_name(enquo(denominator)) | ||
group <- quo_name(enquo(group)) | ||
|
||
|
||
|
||
mod_plot <- data.frame(numerator=as.numeric(.data[[numerator]]) | ||
,denominator=as.numeric(.data[[denominator]]) | ||
, group=as.factor(.data[[group]])) | ||
|
||
return(mod_plot) | ||
|
||
} | ||
|
||
|
||
# medpar | ||
# | ||
tst_func(medpar, los, prds, provnum) | ||
|
||
funnel_plot(medpar, los, prds, provnum) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.