Skip to content

Commit

Permalink
Another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Aug 29, 2024
1 parent 8104933 commit 79bddd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/RowFactor.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,9 @@ RowFactor <- function(x, name = deparse(expr), levelnames=levels(x),
catname <- paste(insert, levelnames[i], sep="")
test <- i # Work around a bug in R 2.12.x!

# labelSubset is local; can't use call() here; see issue #30
test <- as.call(list(labelSubset,
test <- call("labelSubset",
subset = call("==", call("as.integer", call("as.factor", expr)), i),
label = deparse(expr)))
label = deparse(expr))
term <- call("*", call("Heading", makeName(catname)),
test)
if (i == 1)
Expand Down

0 comments on commit 79bddd2

Please sign in to comment.