我使用R包‘stats’分析了我的数据(2.15.3版)。一位评论员问我这个套餐的正确引证,而不仅仅是普通的引用。
R核心小组(2012年)。R:用于统计计算的语言和环境。R统计计算基金会,奥地利维也纳。ISBN 3-900051-07-0,URL http://www.r-project.org/
有人知道我在哪里可以找到有效的引文插入我的论文吗?谢谢
发布于 2013-03-28 17:52:29
审查员错了:
citation("stats")
The ‘stats’ package is part of R. To cite R in publications use:
R Core Team (2013). R: A language and environment for statistical computing. R
Foundation for Statistical Computing, Vienna, Austria. ISBN 3-900051-07-0, URL
http://www.R-project.org/.
A BibTeX entry for LaTeX users is
@Manual{,
title = {R: A Language and Environment for Statistical Computing},
author = {{R Core Team}},
organization = {R Foundation for Statistical Computing},
address = {Vienna, Austria},
year = {2013},
note = {{ISBN} 3-900051-07-0},
url = {http://www.R-project.org/},
}
We have invested a lot of time and effort in creating R, please cite it when
using it for data analysis. See also ‘citation("pkgname")’ for citing R
packages.发布于 2017-05-10 09:06:19
正如hrbrmstr所指出的,创建一个只包含已加载包的引用列表的函数会派上用场。由于他只向我们展示了一个例子,而不是函数,我自己写了一个例子,我经常用在科学分析和论文中(有时结合R Markdown)。
citations <- function(includeURL = TRUE, includeRStudio = TRUE) {
if(includeRStudio == TRUE) {
ref.rstudio <- RStudio.Version()$citation
if(includeURL == FALSE) {
ref.rstudio$url <- NULL;
}
print(ref.rstudio, style = 'text')
cat('\n')
}
cit.list <- c('base', names(sessionInfo()$otherPkgs))
for(i in 1:length(cit.list)) {
ref <- citation(cit.list[i])
if(includeURL == FALSE) {
ref$url <- NULL;
}
print(ref, style = 'text')
cat('\n')
}
}因此,例如,在运行之后
library(readr)
library(dplyr)
library(ggplot2)
library(knitr)函数 citations() 将打印:
RStudio团队(2016年)。RStudio: R. RStudio公司的集成开发环境,马萨诸塞州波士顿。http://www.rstudio.com。
R核心小组(2017年)。R:用于统计计算的语言和环境。R统计计算基金会,奥地利维也纳。https://www.R-project.org。
谢Y (2016)。编织品: R. R软件包1.15.1版http://yihui.name/knitr中动态报表生成的通用软件包.
谢Y (2015)。动态文件与R和针织品,第二版。查普曼和霍尔/CRC,博卡拉顿,佛罗里达州。ISBN 978-1498716963,http://yihui.name/knitr.
谢永(2014)。“针织品:R.可再生研究的综合工具”在Stodden V,Leisch F和彭路(编辑),实施可重复计算研究。查普曼和霍尔/儿童权利委员会ISBN 978-1466561595,http://www.crcpress.com/product/isbn/9781466561595.
韦翰·H(2009年)。ggplot2:用于数据分析的优雅图形。斯普林格-纽约。ISBN 978-0-387-98140-6,http://ggplot2.org.
Wickham H和Francois R (2016)。dplyr:数据操作语法。R软件包版本0.5.0,https://CRAN.R-project.org/package=dplyr。
Wickham H,Hester J和Francois R (2016)。readr:读取表格数据。R包版本1.0.0,https://CRAN.R-project.org/package=readr。
发布于 2014-05-07 20:44:09
https://stackoverflow.com/questions/15688758
复制相似问题