Skip to contents

Reads variables from a file into an ev_variables container. Supports delimited or fixed width text and Excel formats. Will try to guess format based on file extension and first few lines.

Usage

read_ev_variables(file)

Arguments

file

Path to the file to be read

Value

An ev_variables container

Details

Builds a character vector of fully qualified variable names and passes this to make_ev_variables.

See also

If you want to create an ev_variables container directly from a vector of variable names, see make_ev_variables.

Other data request functions: ev_simple_fetch(), fetch_ev_data(), fetch_ev_meta_tabs(), fetch_ev_meta_vars(), make_ev_variables(), write_ev_data()

Examples

if (FALSE) { # \dontrun{

# read a variable data request file
vars <- read_ev_variables("path/to/variables/file")

} # }