tarReduce {signatureSearch} | R Documentation

## Show Reduced Targets

### Description

Reduce number of targets for each element of a character vector by replacting the targets that beyond Ntar to '...'.

### Usage

    tarReduce(vec, Ntar = 5)

### Arguments

`vec` | character vector, each element composed by a list of targets symbols separated by '; '
`Ntar` | integer, for each element in the vec, number of targets to show

### Value

character vector after reducing

### Examples

    vec <- c("t1; t2; t3; t4; t5; t6", "t7; t8")
    vec2 <- tarReduce(vec, Ntar=5)

[Package signatureSearch version 1.1.5 Index]