Skip to content

Commit

Permalink
Update NEWS.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EeethB committed Sep 6, 2023
1 parent 967f2fc commit a496a7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# xportr 0.3.1

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

# xportr 0.3.0

## New Features and Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion R/type.R
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ xportr_type <- function(.df,
is_correct <- sapply(meta_ordered[["type.x"]] == meta_ordered[["type.y"]], isTRUE)
# Use the original variable iff metadata is missing that variable
correct_type <- ifelse(is.na(meta_ordered[["type.y"]]), meta_ordered[["type.x"]], meta_ordered[["type.y"]])

browser()

Check warning on line 162 in R/type.R

View workflow job for this annotation

GitHub Actions / lint

file=R/type.R,line=162,col=0,[indentation_linter] Indentation should be 2 spaces but is 0 spaces.
# Walk along the columns and coerce the variables. Modifying the columns
# Directly instead of something like map_dfc to preserve any attributes.
walk2(
Expand Down

0 comments on commit a496a7e

Please sign in to comment.