tarReduce | R Documentation |
Reduce number of targets for each element of a character vector by replacting the targets that beyond Ntar to '...'.
tarReduce(vec, Ntar = 5)
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 |
character vector after reducing
vec <- c("t1; t2; t3; t4; t5; t6", "t7; t8")
vec2 <- tarReduce(vec, Ntar=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.