Check whether a given record is a particular type

is_indi(gedcom, xref)

is_famg(gedcom, xref)

is_subm(gedcom, xref)

is_repo(gedcom, xref)

is_media(gedcom, xref)

is_note(gedcom, xref)

is_sour(gedcom, xref)

Arguments

gedcom

A tidyged object.

xref

The xref of the record.

Value

A logical indicating whether the record is of a particular type.

Examples

is_indi(sample555, "@I1@")
#> [1] TRUE
is_note(sample555, "@I1@")
#> [1] FALSE
is_famg(sample555, "@F2@")
#> [1] TRUE
is_repo(sample555, "@R1@")
#> [1] TRUE