Skip to content

Commit

Permalink
Fix scaling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Oct 9, 2008
1 parent 75a28a7 commit 6c78b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/scale-.r
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Scale <- proto(TopLevel, expr={

input <- .$input()
if (length(input) == 1 && input %in% c("x", "y")) {
matches <- grep(paste("^", input, sep =""), names(df))
matches <- aes_to_scale(names(df)) == input
input <- names(df)[matches]
}
l_ply(input, function(var) .$train(df[[var]]))
Expand Down

0 comments on commit 6c78b64

Please sign in to comment.