tarReduce: Show Reduced Targets

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

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

Usage

1
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

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

signatureSearch documentation built on April 16, 2021, 6 p.m.