is_reference: Test whether object is a reference

View source: R/is_reference.R

is_referenceR Documentation

Test whether object is a reference

Description

Test whether object is a reference

Usage

is_reference(x)

Arguments

x

An R object, typically produced by import_rif(). The object is a data frame with an attribute named study.

Value

Logical

Examples

is_reference("this is a string")

# import reference and check
fn <- system.file("testdata/nl_2009_hgt_female_nl.txt", package = "centile")
myref <- import_rif(fn)
is_reference(myref)

growthcharts/centile documentation built on May 8, 2024, 9:25 a.m.