Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Aug 12, 2023
1 parent 0494537 commit 24ef7bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion R/clean_names.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' "n".
#'
#' This function takes and returns a data.frame, for ease of piping with
#' ``\%>\%``. For the underlying function that works on a character vector
#' `%>%`. For the underlying function that works on a character vector
#' of names, see [janitor::make_clean_names()]. `clean_names`
#' relies on the versatile function [snakecase::to_any_case()], which
#' accepts many arguments. See that function's documentation for ideas on getting
Expand Down
15 changes: 7 additions & 8 deletions R/statistical_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,17 @@ chisq.test.tabyl <- function(x, tabyl_results = TRUE, ...) {



#' Apply stats::fisher.test to a two-way tabyl
#' Apply `stats::fisher.test()` to a two-way tabyl
#'
#' @description
#' This generic function overrides stats::fisher.test. If the passed table
#' is a two-way tabyl, it runs it through janitor::fisher.test.tabyl, otherwise
#' it just calls stats::fisher.test.
#' This generic function overrides [stats::fisher.test()]. If the passed table
#' is a two-way tabyl, it runs it through `janitor::fisher.test.tabyl`, otherwise
#' it just calls `stats::fisher.test()`.
#'
#' @return
#' The result is the same as the one of stats::fisher.test.
#' The same as the one of `stats::fisher.test()`.
#'
#' @param x a two-way tabyl, a numeric vector or a factor
#' @param ... other parameters passed to stats::fisher.test
#' @param x A two-way tabyl, a numeric vector or a factor
#' @param ... Parameters passed to [stats::fisher.test()]
#'
#' @examples
#' tab <- tabyl(mtcars, gear, cyl)
Expand Down
6 changes: 3 additions & 3 deletions man/chisq.test.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 24ef7bd

Please sign in to comment.