Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiraux committed Feb 20, 2024
1 parent adc990b commit 19130f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/length.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ xportr_length <- function(.df,

length_msg <- left_join(var_length_max, metadata[, c(variable_name, variable_length)], by = variable_name)
length_msg <- length_msg %>%
mutate(length_df = as.numeric(length_msg[[paste0(variable_length, ".x")]]),
length_meta = as.numeric(length_msg[[paste0(variable_length, ".y")]])) %>%
mutate(
length_df = as.numeric(length_msg[[paste0(variable_length, ".x")]]),
length_meta = as.numeric(length_msg[[paste0(variable_length, ".y")]])
) %>%
filter(length_df < length_meta) %>%
select(variable_name, length_df, length_meta)

Expand Down

0 comments on commit 19130f3

Please sign in to comment.