将矢量值转换为矢量列表R.

时间:2018-05-24 13:00:22

标签: r list vector

我有一个n个元素的向量,所有字符串都是字符串。随机示例可能是 names

[1] Tim Tom Berta ... n

我希望将其分成一个看起来像这样的矢量列表:

Names
$name:
[1] Tim
$name
[1] Tom
$name
[1] Berta
...
$name
[1] n

为了给出一些背景,为什么:原因是通过R的rDNA包的程序给出以排除某些数据。例如,计算actor-concept-network的聚类分析,但仅包含概念的子组(突出显示)。

congruence <- dna_network(conn,
           networkType = "onemode",
           statementType = "DNA Statement",
           variable1 = "organization",
           **variable2 = "concept",**
           qualifier = "agreement",
           qualifierAggregation = "congruence",
           duplicates = "document",
           **excludeValues = list("concept" =
                                  "There should be legislation to regulate emissions.")**)

0 个答案:

没有答案