Skip to content

Commit 584bca9

Browse files
committed
fix
1 parent 6c86c36 commit 584bca9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/get_response.R

+5
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ get_response.default <- function(x, select = NULL, as_proportion = TRUE, source
7575
!is.matrix(response)) {
7676
response <- as.vector(response)
7777
}
78+
79+
# clear vctr-class attributes
80+
if (inherits(response, "vctrs_vctr")) {
81+
class(response) <- setdiff(class(response), c("haven_labelled", "vctrs_vctr"))
82+
}
7883
response
7984
}
8085

0 commit comments

Comments
 (0)