load_key: Load Key from TXT file

Description Usage Arguments Value Examples

View source: R/load_key.R

Description

load_key reads a list of key=value pairs in a txt file where "=" is the required delimeter.

Usage

1
load_key(path, filename, col_names = c("key", "value"))

Arguments

path

String path to the project root directory.

filename

Name of the file with extension .txt.

col_names

Vector of the key and value headers. Defaults to "key" and "value" via c("key", "value").

Value

A transposed key.

Examples

1
2
load_key("/path/to/keys", filename = "validation_key.txt")
load_key("/path/to/keys", filename = "categorization_key.txt")

sokolhessnerlab/shlab.imgct documentation built on Oct. 4, 2020, 7:31 a.m.