Reads a file that is stored in RIF format and returns a data frame. The function validates the presence of required fields, and checks whether the variable names in the data match the specified distribution.
import_rif(file)An object of class reference, basically a data frame with an
attribute called study.
fn <- system.file("testdata/nl_2009_hgt_male_nl.txt", package = "centile")
myref <- import_rif(fn)