column_dictionary: Map column names to positions.

View source: R/column_dictionary.R

column_dictionaryR Documentation

Map column names to positions.

Description

Useful in situations where you need to specify columns by index instead of name (e.g. awk queries).

Usage

column_dictionary(path)

Arguments

path

Path to full summary stats file (or any really file you want to make a column dictionary for).

Value

Named list of column positions.

Examples

tmp <- tempfile()
data.table::fwrite(echodata::BST1, tmp)
cdict <- echodata::column_dictionary(path = tmp)

RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.