listToCharacterVector(annotationTools)
listToCharacterVector()所属R语言包:annotationTools
Turn list into character vector
特征向量变成列表
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Takes a list and returns a character vector by (separately) concatenating the vectors in the list.
接受一个列表,并返回一个字符向量(单独购买)连接列表中的向量。
用法----------Usage----------
listToCharacterVector(lst,sep=' /// ')
参数----------Arguments----------
参数:lst
list object
列表中的对象
参数:sep
character string specifying the separator to concatenate each elements of vectors in the list
指定分隔符的字符串连接列表中每个元素的向量
Details
详情----------Details----------
The output vector has same length as the input list.
输出向量具有相同的长度作为输入列表。
值----------Value----------
参数:v
vector of length 'length(lst)' where the 'i'-th element contains the concatenation of the 'i'-th element of 'lst'.
向量的长度的长度(LST),其中δ-th元素包含δ-日“乐善堂”串联“元素。
作者(S)----------Author(s)----------
Alexandre Kuhn
举例----------Examples----------
##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[#合并前2个列表元素]
listToCharacterVector(lst,sep=', ')
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|