listToCharacterVector {annotationTools} | R Documentation |
Takes a list and returns a character vector by (separately) concatenating the vectors in the list.
listToCharacterVector(lst,sep=' /// ')
lst |
list object |
sep |
character string specifying the separator to concatenate each elements of vectors in the list |
The output vector has same length as the input list.
v |
vector of length 'length(lst)' where the 'i'-th element contains the concatenation of the 'i'-th element of 'lst'. |
Alexandre Kuhn, alexandre.kuhn@isb-sib.ch
##an example list lst<-vector('list',3) lst[[1]]<-c('a1','a2') lst[[2]]<-'b' lst[[3]]<-c('c1','c2','c3') ##merge first 2 list elements listToCharacterVector(lst,sep=', ')