Skip to content

Commit 8d84771

Browse files
committed
Update lookup.R
1 parent f5f0cf6 commit 8d84771

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rstan/rstan/R/lookup.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ lookup <- function(FUN, ReturnType = character()) {
3131
if(FUN == "nrow") FUN <- "NROW"
3232
if(FUN == "ncol") FUN <- "NCOL"
3333

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

0 commit comments

Comments
 (0)