Scholar R 包使用教程
scholar Analyse citation data from Google Scholar 项目地址: https://gitcode.com/gh_mirrors/sch/scholar
1. 项目介绍
Scholar 是一个R语言的包,主要用于从Google Scholar提取引用数据。通过这个包,用户可以获取关于学者的基本信息、引用历史、出版物列表等。此外,它还支持比较多个学者以及预测学者的未来h指数。
2. 项目快速启动
安装
从CRAN安装:
install.packages("scholar")
从GitHub安装:
if (!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("jkeirstead/scholar")
基本使用
以学者Richard Feynman为例,其Google Scholar的唯一ID为 B7vSqZsAAAAJ
。
获取学者基本信息:
id <- 'B7vSqZsAAAAJ'
profile <- get_profile(id)
print(profile$name)
获取引用历史:
citation_history <- get_citation_history(id)
print(citation_history)
获取出版物列表:
publications <- get_publications(id)
print(publications)
3. 应用案例和最佳实践
获取特定学者的信息
# 定义学者ID
id <- 'B7vSqZsAAAAJ'
# 获取并打印学者姓名
name <- get_profile(id)$name
print(name)
# 获取并打印引用历史
citation_history <- get_citation_history(id)
print(citation_history)
# 获取并打印出版物列表
publications <- get_publications(id)
print(publications)
比较多个学者的信息
# 定义多个学者的ID
ids <- c('B7vSqZsAAAAJ', 'qj74uXkAAAAJ')
# 获取并打印比较数据
comparison <- compare_scholars(ids)
print(comparison)
# 获取并打印职业轨迹比较
careers_comparison <- compare_scholar_careers(ids)
print(careers_comparison)
预测h指数
# 定义学者ID
id <- 'GAi23ssAAAAJ'
# 预测h指数
h_index <- predict_h_index(id)
print(h_index)
4. 典型生态项目
目前,Scholar R 包作为独立项目使用,暂无明确的典型生态项目。但用户可以根据自己的需求,将Scholar集成到自己的项目中,进行更复杂的数据分析和可视化。
scholar Analyse citation data from Google Scholar 项目地址: https://gitcode.com/gh_mirrors/sch/scholar