Skip to content

Commit

Permalink
Merge branch 'main' into 179_fetch_dataset_label_from_metadata
Browse files Browse the repository at this point in the history
# Conflicts:
#	NEWS.md
  • Loading branch information
vedhav committed Dec 5, 2023
2 parents 4c2f376 + 582aa27 commit 3d90cd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
## Deprecation and Breaking Changes
* The `label` argument from the `xportr_write()` function is deprecated in favor of the `metadata` argument.

# xportr 0.3.1

* Make `xportr_type()` drop factor levels when coercing variables

# xportr 0.3.0

## New Features and Bug Fixes
Expand Down
1 change: 1 addition & 0 deletions R/type.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ xportr_type <- function(.df,
if (!is_correct[i]) {
orig_attributes <- attributes(.df[[i]])
orig_attributes$class <- NULL
orig_attributes$levels <- NULL
if (correct_type[i] %in% characterTypes) {
.df[[i]] <<- as.character(.df[[i]])
} else {
Expand Down

0 comments on commit 3d90cd0

Please sign in to comment.