r - 使用 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
?感谢帮助!
解决方案
这results
将是一个list
对象,并且是一个以作者姓名为Authors
单位的计数频率表。names
如果是这种情况,我们可以使用grep
'LEE J' 的子字符串匹配来识别名称
i1 <- grep("LEE J", names(results$Authors))
results$Authors[i1]
或==
用于完全匹配
results$Authors[names(results$Authors) == "LEE J"]
推荐阅读
- c# - HtmlHelper 不包含 PagedListPager 的定义
- javascript - 标题滚动事件
- django - django表单小部件中的图像字段或布尔字段?
- r - 在R中重新缩放x轴
- php - 如何在 Laravel 8 测试中为每个类运行一次 setUp 函数?
- android - 如何在 FLUTTER 中显示歌曲和弦
- python - 在 Asyncio Python 中兼顾生产者和消费者
- python - 在python中创建一个倒计时时钟函数
- javascript - 异步函数中的奇怪行为
- xaml - Xamarin 中有没有像 Codepen、jsfiddle 这样的在线 xaml 编辑器?