Permalink
Browse files

Merge pull request #105 from wch/fix-extract_col_rows

extract_col_rows: fix typo referring to wrong var name
  • Loading branch information...
2 parents 25cf018 + 3bfce09 commit e70081b68621da5826f1de90fbab0bdeef846171 @hadley committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/indexed-data-frame.r
View
@@ -40,7 +40,7 @@ extract_col_rows <- function(df, i, j) {
if (is.null(attr(col, "class"))) {
.subset(col, i)
- } else if (inherits(col, "factor") || inherits(x, "POSIXt")) {
+ } else if (inherits(col, "factor") || inherits(col, "POSIXt")) {
out <- .subset(col, i)
attributes(out) <- attributes(col)
out

0 comments on commit e70081b

Please sign in to comment.