update_df: Dataset line by line construction: add a sample

update_dfR Documentation

Dataset line by line construction: add a sample

Description

Add a sample (a row) to an existing dataset. This procedure is meant to be used with the "

Usage

update_df(mutmatrix, sampleName, ...)

Arguments

mutmatrix

an existing (sparse) matrix (mutational matrix)

sampleName

the row (sample) name

...

sample's genotype (0/1 numbers)

Value

the modified (sparse) matrix (mutational matrix)

Examples


require(dplyr)
make_dataset(APC,P53,KRAS)   %>%
    update_df("S1", 1, 0, 1) %>%
    update_df("S2", 1, 1, 1)



redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.