build_var_names: Build a complete vector of variable names for the input data...

Description Usage Arguments Value Examples

View source: R/data_io.R

Description

Build a complete vector of variable names for the input data frame, var_info (for details on var_info, see [load_var_info]

Usage

1
build_var_names(var_info)

Arguments

var_info

The variable information data frame

Value

A list of all variable names specified by var_info, accounting for left/right variables

Examples

1
2
3
4
5
6
7
8
9
# Call build_var_names to generate expected column names in data
var_info_file <- syanalysis_name.file("extdata","US_var_info.csv",package="yada")
print(var_info_file)

var_info <- load_var_info(var_info_file)  # load file using file path
head(var_info)

var_names <- build_var_names(var_info)
var_names[5:16]

MichaelHoltonPrice/yada documentation built on Sept. 19, 2021, 11:27 p.m.