【发布时间】:2016-08-21 01:11:42
【问题描述】:
我的数据框中有一列如下
Col1
----------------------------------------------------------------------------
Center for Animal Control, Division of Hypertension, Department of Medicine
Department of Surgery, Division of Primary Care, Center for Animal Control
Department of Internal Medicine, Division of Hypertension, Center for Animal Control
我如何计算以逗号分隔的字符串的数量,换句话说,我想要完成的是如下所示
Affiliation Freq
------------------------------------------
Center for Animal Control 3
Division of Hypertension 2
Department of Medicine 1
Department of Surgery 1
Division of Primary Care 1
Department of Internal Medicine 1
有人可以帮我解决这个问题吗?
【问题讨论】:
-
您能发布到目前为止您尝试过的内容,以及哪些内容不起作用吗?
标签: r count word-frequency