Skip to content

Commit

Permalink
Review of PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mayer79 committed Jul 7, 2024
1 parent f003dc3 commit 2278089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/utils_calculate.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ gwColMeans <- function(x, g = NULL, w = NULL) {
}

# Now the interesting case
if (!is.vector(x) || !is.matrix(x)) {
if (!is.vector(x) && !is.matrix(x)) {
x <- as.matrix(x)
}
if (is.null(w)) {
Expand Down
2 changes: 1 addition & 1 deletion R/utils_input.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ prepare_w <- function(w, X) {
#' or column names in `X`.
#' @param X Matrix-like.
#'
#' @returns A list with "y" (vector, matrix) and "y_names" (if `y`
#' @returns A list with "y" (vector, matrix, or factor) and "y_names" (if `y`
#' was passed as column names).
prepare_y <- function(y, X) {
if (NROW(y) < nrow(X) && all(y %in% colnames(X))) {
Expand Down

0 comments on commit 2278089

Please sign in to comment.