Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 20, 2023
1 parent 7fb2236 commit 28b8d52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/data_write.r
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ data_write <- function(data,
label = variable_label
)
} else if (!is.null(value_labels) || !is.null(variable_label)) {
# character requires special preparation to save levels as labels
# character requires special preparation to save value labels
# haven:::vec_cast_named requires "x" and "labels" to be of same type
if (is.character(i)) {
haven::labelled(
Expand Down

0 comments on commit 28b8d52

Please sign in to comment.