dbNames: Get variable names from a relational data base.

Description Usage Arguments Details Value Examples

View source: R/03_DB_infos.R

Description

Function to get the names of the variables included in the relational data base.

Usage

1
dbNames(filePath, includeMeta = FALSE)

Arguments

filePath

Path of an existing .db file.

includeMeta

Should the variable names of the Meta_Data table be included.

Details

Extracts names of all variables included in the relational data base, structured as a list with the individual data tables as elements. The ordering in the list is equivalent to the merge order used when data is pulled from the data base.

Value

Returns a named list of character vectors with the variables names included in the data tables.

Examples

1
2
3
4
5
6
7
8
db_path <- system.file("extdata", "example_dataBase.db", package = "eatDB")
varNames <- dbNames(db_path)

## Names of data tables
names(varNames)

## Variable names in data table "NoImp"
varNames$NoImp

eatDB documentation built on Oct. 5, 2021, 5:06 p.m.