expandColumnToMatrix: Expand columns to matrix

View source: R/assignMutationsSignatureProbability.R

expandColumnToMatrixR Documentation

Expand columns to matrix

Description

Expand columns to matrix

Usage

expandColumnToMatrix(dataTable, targetColname)

Arguments

dataTable

table containing a column to expand. Each cell to expand will be a list of pairs, where each element of the list is separated by ";" and each pair is separated by ":". Pairs indicate colname and value. For example, if the value in a row is C1:V1;C2:V2;C4:V4, this will be expanded into columns C1, C2, C4 and values for that row V1, V2, V4.

targetColname

colname of the column to expand

Value

dataTable with expanded column


Nik-Zainal-Group/signature.tools.lib documentation built on April 13, 2025, 5:50 p.m.