Skip to content

Commit

Permalink
Update row_means.R
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke authored Aug 13, 2023
1 parent 8e5c0e2 commit 2c4aace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/row_means.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ row_means <- function(data,

# proceed here if min_valid is not NULL
if (!is.null(min_valid)) {
# is 'n' indicating a proportion?
# is 'min_valid' indicating a proportion?
decimals <- min_valid %% 1
if (decimals != 0) {
n <- round(ncol(data) * decimals)
min_valid <- round(ncol(data) * decimals)
}

# min_valid may not be larger as df's amount of columns
Expand Down

0 comments on commit 2c4aace

Please sign in to comment.