diff --git a/DESCRIPTION b/DESCRIPTION index 227f9ee..c5c46bd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: CodeAndRoll2 Title: CodeAndRoll2 for vector, matrix and list manipulations -Version: 2.8.16 +Version: 2.8.19 Authors@R: person("Abel", "Vertesy", , "av@imba.oeaw.ac.at", role = c("aut", "cre")) Description: CodeAndRoll2 is a set of more than 170 productivity functions diff --git a/Development/config.R b/Development/config.R index cc4bdcb..5cd2eeb 100644 --- a/Development/config.R +++ b/Development/config.R @@ -3,7 +3,7 @@ DESCRIPTION <- list( package.name = "CodeAndRoll2", - version = "2.8.16", + version = "2.8.19", title = "CodeAndRoll2 for vector, matrix and list manipulations", description = "CodeAndRoll2 is a set of more than 170 productivity functions for vector, matrix and list manipulations and math. Used by MarkdownReports, ggExpress, SeuratUtils, etc.", diff --git a/R/CodeAndRoll2.R b/R/CodeAndRoll2.R index efafc51..536fa2f 100644 --- a/R/CodeAndRoll2.R +++ b/R/CodeAndRoll2.R @@ -2547,7 +2547,7 @@ select_rows_and_columns <- function(df, RowIDs = NULL, ColIDs = NULL) { } else { Stringendo::iprint("All row IDs found") } # if - df <- df[true_rownames, ] + df <- df[true_rownames, , drop = FALSE] } # if if (length(ColIDs)) { true_colnames <- intersect(colnames(df), ColIDs) @@ -2557,7 +2557,7 @@ select_rows_and_columns <- function(df, RowIDs = NULL, ColIDs = NULL) { } else { Stringendo::iprint("All column IDs found") } - df <- df[, true_colnames] + df <- df[, true_colnames, drop = FALSE] } # if Stringendo::iprint(dim(df)) return(df)