Skip to content

Commit ad07a7f

Browse files
malanbosMelkiades
andauthored
Update R/compare_ard_helpers.R
Co-authored-by: Davide Garolini <dgarolini@gmail.com> Signed-off-by: Malan <64360731+malanbos@users.noreply.github.com>
1 parent 95c7302 commit ad07a7f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

R/compare_ard_helpers.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,19 @@
214214
}
215215
}
216216

217+
# perform inner join to compare only matching rows
217218
# perform inner join to compare only matching rows
218219
comparison <- dplyr::inner_join(
219220
x_selected,
220221
y_selected,
221222
by = keys,
222223
suffix = c(".x", ".y")
223-
)
224-
224+
) |>
225+
unlist_ard_columns()
226+
227+
# Remove "cards" class from the object
228+
class(comparison) <- setdiff(class(comparison), "card")
229+
225230
# build mismatch data frame for each compare column
226231
lapply(
227232
stats::setNames(compare, compare),

0 commit comments

Comments
 (0)