tarReduce: Show Reduced Targets

View source: R/utilities.R

tarReduceR 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)

girke-lab/signatureSearch documentation built on Feb. 21, 2024, 8:32 a.m.