Skip to content

Commit 07c503c

Browse files
committed
avoid dropping attributes as some revdeps rely on names for indexing
1 parent 9bec3f6 commit 07c503c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

R/scale-discrete-.r

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ new_mapped_discrete <- function(x = double()) {
149149
}
150150
mapped_discrete <- function(x = double()) {
151151
if (is.null(x)) return(NULL)
152-
x <- as.vector(x)
153152
new_mapped_discrete(vec_cast(x, double()))
154153
}
155154
is_mapped_discrete <- function(x) inherits(x, "mapped_discrete")

0 commit comments

Comments
 (0)