Permalink
Browse files

Use .id as default label name

  • Loading branch information...
1 parent 2fab5d5 commit 3ddc6bee6cdc092e4e5c861344609bca0f8def9f @hadley committed Mar 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 R/simplify.r
View
@@ -27,7 +27,7 @@ list_to_dataframe <- function(res, labels = NULL) {
# If no labels supplied, use list names
if (is.null(labels) && !is.null(names(res))) {
- labels <- data.frame(id = names(res))
+ labels <- data.frame(.id = names(res))
}
if (!is.null(labels) && nrow(labels) == length(res)) {

0 comments on commit 3ddc6be

Please sign in to comment.