update_df {CIMICE} | R 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)

[Package CIMICE version 1.2.1 Index]