Skip to content

Commit

Permalink
Update lookup.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Feb 7, 2024
1 parent f5f0cf6 commit 8d84771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rstan/rstan/R/lookup.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ lookup <- function(FUN, ReturnType = character()) {
if(FUN == "nrow") FUN <- "NROW"
if(FUN == "ncol") FUN <- "NCOL"

keep_cols <- !(colnames(rosetta) == "RFunction")
keep_cols <- colnames(rosetta) != "RFunction"
if(exists(FUN)) {
matches <- as.logical(charmatch(rosetta$RFunction, FUN, nomatch = 0L))
if(any(matches)) return(rosetta[matches, keep_cols, drop = FALSE])
Expand Down

0 comments on commit 8d84771

Please sign in to comment.