# NOT RUN {
trades_directory <- tibble::tibble(
page = rep("71", 3L),
rank = c("135", "326", "586"),
surname = c("Abbott", "Abercromby", "Blair"),
forename = c("William", "Alexander", "John Hugh"),
occupation = c("Wine and spirit merchant", "Baker", "Victualler"),
type = rep("OWN ACCOUNT", 3L),
address.trade.number = c("18, 20", "12", "280"),
address.trade.body = c("London Road", "Dixon Place", "High Street")
)
general_directory <- tibble::tibble(
page = rep("71", 2L),
surname = c("Abbott", "Abercromby"), forename = c("William", "Alexander"),
occupation = c("Wine and spirit merchant", "Baker"),
address.trade.number = c("18, 20", ""),
address.house.number = c("136", "29"),
address.trade.body = c("London Road", "Dixon Place"),
address.house.body = c("Queen Square", "Anderston Quay")
)
combine_match_general_to_trades(
trades_directory, general_directory, progress = TRUE, verbose = FALSE,
distance = TRUE, method = "osa", max_dist = 5
)
# }
Run the code above in your browser using DataLab