# Data with whitespace issues
orders <- data.frame(
id = c(" A", "B ", "C"),
value = 1:3,
stringsAsFactors = FALSE
)
# Dry run to see what would change
join_repair(orders, by = "id", dry_run = TRUE)
# Actually repair
orders_fixed <- join_repair(orders, by = "id")
Run the code above in your browser using DataLab