Test whether object is a reference
is_reference(x)
An R object, typically produced by import_rif()
. The object is
a data frame with an attribute named study
.
Logical
is_reference("this is a string")
#> [1] FALSE
# import reference and check
fn <- system.file("testdata/nl_2009_hgt_female_nl.txt", package = "centile")
myref <- import_rif(fn)
is_reference(myref)
#> [1] TRUE