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)

Arguments

file

Path to a file in RIF format.

Value

An object of class reference, basically a data frame with an attribute called study.

Author

Stef van Buuren 2021

Examples

fn <- system.file("testdata/nl_2009_hgt_male_nl.txt", package = "centile")
myref <- import_rif(fn)