We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f0cf6 commit 8d84771Copy full SHA for 8d84771
1 file changed
rstan/rstan/R/lookup.R
@@ -31,7 +31,7 @@ lookup <- function(FUN, ReturnType = character()) {
31
if(FUN == "nrow") FUN <- "NROW"
32
if(FUN == "ncol") FUN <- "NCOL"
33
34
- keep_cols <- !(colnames(rosetta) == "RFunction")
+ keep_cols <- colnames(rosetta) != "RFunction"
35
if(exists(FUN)) {
36
matches <- as.logical(charmatch(rosetta$RFunction, FUN, nomatch = 0L))
37
if(any(matches)) return(rosetta[matches, keep_cols, drop = FALSE])
0 commit comments