Skip to content

Commit

Permalink
fix check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 10, 2023
1 parent 8a68e7d commit 316e953
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions R/means_by_group.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#' @title Summary of mean values by group
#' @name means_by_group
#'
#' @description Computes mean, sd and se for each sub-group (indicated by \code{grp})
#' of \code{dv}.
#' @description Computes sumary table of means by groups.
#'
#' @param x A vector or a data frame.
#' @param group If `x` is a numeric vector, `group` should be a factor that
#' indicates the group-classifying categories. If `x` is a data frame, `group`
#' should be a character string, naming the variable in `x` that is used for
#' grouping. Numeric vectors are coerced to factors.
#' @param weights If `x` is a numeric vector, `weights` should be a vector of
#' weightes that will be applied to weight all observations. If `x` is a data
#' weighted that will be applied to weight all observations. If `x` is a data
#' frame, can also be a character string indicating the name of the variable in
#' `x` that should be used for weighting. Default is `NULL`, so no weights are
#' used.
Expand All @@ -23,7 +22,7 @@
#' statistics for each sub-group.
#'
#' @details This function is comparable to `aggregate(x, group mean)`, but provides
#' some further information, including summary statistics from a One-Way-Anova
#' some further information, including summary statistics from a One-Way-ANOVA
#' using `x` as dependent and `group` as independent variable.
#' Then \code{\link[emmeans]{contrast}}
#' is called to get p-values for each sub-group. P-values indicate whether
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ reference:
- data_codebook
- data_tabulate
- data_peek
- means_by_group
- contains("distribution")
- kurtosis
- smoothness
Expand Down
7 changes: 3 additions & 4 deletions man/means_by_group.Rd

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

0 comments on commit 316e953

Please sign in to comment.