Skip to content

Commit

Permalink
enframe() also works for data frames, creates a packed data frame.
Browse files Browse the repository at this point in the history
Revert "REVERT ME: Break for data frames for compatibility with codebook"

This reverts commit 885c191.
  • Loading branch information
krlmlr committed Aug 8, 2021
1 parent 4e3f86e commit 776119e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/enframe.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ enframe <- function(x, name = "name", value = "value") {
x <- logical()
}

# FIXME: Enable again for data frames, add test
if (!vec_is(x) || is.data.frame(x)) {
if (!vec_is(x)) {
cnd_signal(error_enframe_must_be_vector(x))
}

Expand Down

0 comments on commit 776119e

Please sign in to comment.