Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Aug 10, 2023
1 parent 1fa0466 commit 84abd41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/rowmean_n.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ rowmean_n <- function(data, n, digits = NULL, verbose = TRUE) {

# coerce matrix to data frame
if (is.matrix(data)) {
data <- as.data.frame(data)
data <- .coerce_to_dataframe(data)
}

# n must be a numeric, non-missing value
Expand All @@ -82,7 +82,7 @@ rowmean_n <- function(data, n, digits = NULL, verbose = TRUE) {

# check if we have a data framme with at least two columns
if (ncol(data) < 2) {
insight::format_error("`data` must be a data frame with at least two columns.")
insight::format_error("`data` must be a data frame with at least two numeric columns.")
}

# is 'n' indicating a proportion?
Expand Down

0 comments on commit 84abd41

Please sign in to comment.