This function identifies records that are not referenced in any other records.
identify_unused_records(tg)
A tidyged object.
A vector of xrefs that are not referenced anywhere else in the tidyged object.
You would expect every record to be referenced by another in some way. For example, Individual records should reference Family Group records (and vice-versa), Repository records should be referenced by Source records, and Source records should be cited by other records.
You can use the output of this function with tidyged::remove_records() to remove them, or tidyged::describe_records() to find out more about them.