首页 > 解决方案 > 使用 bibliometrix,如何在 Hindex 函数中提取确切作者?

问题描述

在下面的代码中,计算h-index了作者的估计值。

library(bibliometrix)
results <- biblioAnalysis(df, sep = ";")
indices$CitationList
authors=gsub(","," ",names(results$Authors)[1:10])
indices <- Hindex(M16, field = "author", elements=authors, sep = ";", years = 50)

然后输出到一张桌子上,如下面的使用indices$H

      Author h_index g_index m_index TC NP PY_start
1     TSAI CC       6       8     1.2 69 11     2016
2  ZEMBYLAS M       5       7     1.0 60 11     2016
3   BOGNER FX       4       6     0.8 43 10     2016
4       KIM H       3       4     0.6 22 10     2016
5       KIM J       5       9     1.0 82 10     2016
6      WANG J       3       3     0.6 21 10     2016
7       LEE J       2       5     0.4 27  9     2016
8   MARTIN AJ       3       6     0.6 45  8     2016
9    TAYLER C       4       6     0.8 38  8     2016
10    COHEN A       2       4     0.4 24  7     2016

我遇到的问题是第 7 行中的常见名称LEE J。我如何从results数据中识别出这个特定的名称LEE J?感谢帮助!

标签: rbibliography

解决方案


results将是一个list对象,并且是一个以作者姓名为Authors单位的计数频率表。names如果是这种情况,我们可以使用grep'LEE J' 的子字符串匹配来识别名称

i1 <- grep("LEE J", names(results$Authors))
results$Authors[i1]

==用于完全匹配

results$Authors[names(results$Authors) == "LEE J"]

推荐阅读