Skip to content

Commit 776119e

Browse files
committed
enframe() also works for data frames, creates a packed data frame.
Revert "REVERT ME: Break for data frames for compatibility with codebook" This reverts commit 885c191.
1 parent 4e3f86e commit 776119e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/enframe.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ enframe <- function(x, name = "name", value = "value") {
2828
x <- logical()
2929
}
3030

31-
# FIXME: Enable again for data frames, add test
32-
if (!vec_is(x) || is.data.frame(x)) {
31+
if (!vec_is(x)) {
3332
cnd_signal(error_enframe_must_be_vector(x))
3433
}
3534

0 commit comments

Comments
 (0)