split_column: Split a column

View source: R/required_scripts.R

split_columnR Documentation

Split a column

Description

This function splits a column in the nomenclature table by a defined character into a matrix of values for use with downstream CCN functions

Usage

split_column(nomenclature, column_name, split_char = "\\|", expand = FALSE)

Arguments

nomenclature

the nomenclature table output from 'build_nomenclature_table' or related/downstream functions.

column_name

the name of the column for splitting

split_char

the character to split the column on (default = "|")

expand

expands the matrix (default = FALSE)

Value

A matrix with character entries, where each row corresponds to an entry from the input vector and each column corresponds to unique values from the split vectors


AllenInstitute/CCN documentation built on April 15, 2023, 10:48 p.m.