Description Usage Arguments Value Author(s) References Examples

This function is called internally by DiNAMIC's `peeling`

function, and by construction the `k`

th entry of binary.vec is 1, where `k`

is described below.
If `length(binary.vec) = m`

, then the
function produces a binary vector of length `m`

that contains a single contiguous string of 1's, namely the string that contains the 1 in the `k`

th position of binary.vec.

1 | ```
recodeBinary(binary.vec, k)
``` |

`binary.vec` |
A binary vector of length |

`k` |
A positive integer. |

A binary vector of length m that contains a single contiguous string of 1's, namely the string that contains the 1 in the kth position of binary.vec.

Vonn Walter, Andrew B. Nobel, Fred A. Wright

Maintainer: <vwalter@email.unc.edu> Vonn Walter

Walter, V., Nobel, A.B., and Wright, F.A., DiNAMIC: a method to identify recurrent DNA copy number aberrations in tumors, Bioinformatics (2011) 27(5) 678 - 685.

1 2 3 | ```
test = c(1, 0, 0, 1, 1, 0, 0, 1, 0)
recodeBinary(test, 5)
#Returns (0, 0, 0, 1, 1, 0, 0, 0, 0)
``` |

```
[1] 0 0 0 1 1 0 0 0 0
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.