Permalink
Browse files

extract_col_rows: fix typo referring to wrong var name

  • Loading branch information...
1 parent 25cf018 commit 3bfce09c571697bc1cea067266d5fe73354ab1f9 @wch wch 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 3bfce09

Please sign in to comment.