bibentry(utils)
bibentry()所属R语言包:utils
Bibliography Entries
参考书目条目
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Functionality for representing and manipulating bibliographic information in enhanced BibTeX style.
为代表和操纵增强的BibTEX风格的书目信息的功能。
用法----------Usage----------
bibentry(bibtype, textVersion = NULL, header = NULL, footer = NULL,
key = NULL, ..., other = list(),
mheader = NULL, mfooter = NULL)
## S3 method for class 'bibentry'
print(x, style = "text", .bibstyle = "JSS", ...)
参数----------Arguments----------
参数:bibtype
a character string with a BibTeX entry type. See Entry Types for details.
用的BibTEX条目类型的字符串。详情请参阅项类型。
参数:textVersion
a character string with a text representation of the reference to optionally be employed for printing.
与一个参考的文字表示的字符串,可选受雇于印刷。
参数:header
a character string with optional header text.
一个可选的标题文本的字符串。
参数:footer
a character string with optional footer text.
一个可选的页脚文本字符串。
参数:key
a character string giving the citation key for the entry.
一个字符串给引用条目的关键。
参数:...
for bibentry: arguments of the form <VAR>tag</VAR>=<VAR>value</VAR> giving the fields of the entry, with <VAR>tag</VAR> and <VAR>value</VAR> the name and value of the field, respectively. Arguments with empty values are dropped. See Entry Fields for details. For the print method, extra parameters to pass to the renderer.
bibentry:参数的形式<VAR>tag</VAR>=<VAR>value</VAR>给<VAR>标签的条目领域,</无功>和<VAR>值</ VAR的名称和字段的值,分别。空值的参数将被丢弃。详情请参阅输入字段。对于print方法,额外的参数传递给渲染。
参数:other
a list of arguments as in ... (useful in particular for fields named the same as formals of bibentry).
列表中的参数...(名为bibentry形参相同的字段)特别有用。
参数:mheader
a character string with optional “outer” header text.
一个可选的“外”的标题文本字符串。
参数:mfooter
a character string with optional “outer” footer text.
一个可选的“外”页脚文本字符串。
参数:x
an object inheriting from class "bibentry".
继承类"bibentry"对象。
参数:style
a character string specifying the print style. Must be a unique abbreviation (with case ignored) of the available styles, see Details.
一个字符串,指定打印样式。必须有一个独特的缩写,可用样式(忽略大小写),查看详情。
参数:.bibstyle
a character string naming a bibliography style.
一个字符串,命名书目风格。
Details
详情----------Details----------
The bibentry objects created by bibentry can represent an arbitrary positive number of references. One can use c() to combine bibentry objects, and hence in particular build a multiple reference object from single reference ones. Alternatively, one can use bibentry to directly create a multiple reference object by “vectorizing” the given arguments, i.e., use character vectors instead of character strings.
bibentry创建的对象bibentry可以表示任意正数引用。人们可以使用c()结合bibentry对象,因此,特别是建立多个参考对象从单一的参考的。另外,可以使用bibentry直接创建多个参考对象,通过“矢量”给定的参数,即使用的特征向量,而不是字符串。
The print method for bibentry objects provides a choice between seven different styles: plain text (style "text"), BibTeX ("Bibtex"), a mixture of plain text and BibTeX as traditionally used for citations ("citation"), HTML ("html"), LaTeX ("latex"), R code ("R"), and a simple copy of the textVersion elements (style "textVersion"). The "text", "html" and "latex" styles make use of the .bibstyle argument using the bibstyle function. When printing bibentry objects in citation style, a header/footer for each item can be displayed as well as a mheader/mfooter for the whole vector of references.
print的bibentry对象的方法提供了7个不同风格之间的选择:纯文本(风格"text")的BibTEX("Bibtex"),纯文本及BibTeX的混合物作为传统用于引用("citation"),HTML("html"),乳胶("latex"),R代码("R"),和一个简单的textVersion元素(样式副本"textVersion")。 "text","html"和"latex"款式.bibstyle使用bibstyle函数的参数使用。在引用样式bibentry对象在打印时,header/footer每个项目可以显示以及一个mheader/mfooter引用的向量。
The print method is based on a format method which provides the same styles, and for formatting as R code a choice between giving a character vector with one bibentry() call for each bibentry (as commonly used in "CITATION" files), or a character string with one collapsed call, obtained by combining the individual calls with c() if there is more than one bibentry. This can be controlled by setting the option collapse to FALSE (default) or TRUE, respectively. (Printing in R style always collapses to a single call.)
print方法是基于一个format方法,它提供了相同的样式,并选择格式化为R代码之间提供一个bibentry()bibentry每个呼叫(如常用的字符向量使用“CITATION文件),或与一个倒塌的呼叫字符串,得到相结合的个人电话c()如果有一个以上的bibentry。这可以通过设置选项collapseFALSE(默认)或TRUE,分别控制。 (R风格印刷折叠到一个单一的呼叫)。
There is also a toBibtex method for direct conversion to BibTeX.
还有toBibtex的BibTEX直接转换的方法。
值----------Value----------
bibentry produces an object of class "bibentry".
bibentry生产类"bibentry"的对象。
输入类型----------Entry Types----------
bibentry creates "bibentry" objects, which are modeled after BibTeX entries. The entry should be a valid BibTeX entry type, e.g.,
bibentry创建"bibentry"对象,这是建模后的BibTEX项。该条目应该是一个有效的BibTEX条目类型,例如,
Article: An article from a journal or magazine.
文章:从杂志或杂志的文章。
Book: A book with an explicit publisher.
书:一本书与一个明确的出版商。
InBook: A part of a book, which may be a chapter (or section
InBook:一本书的一部分,这可能是一个章节(或部分
InCollection: A part of a book having its own title.
InCollection:一本书有它自己的标题的一部分。
InProceedings: An article in a conference proceedings.
InProceedings:会议程序的文章。
Manual: Technical documentation like a software manual.
手册:软件手册等技术文档。
MastersThesis: A Master's thesis.
MastersThesis:硕士论文。
Misc: Use this type when nothing else fits.
其他:没有别的适合时,使用此类型。
PhdThesis: A PhD thesis.
PhdThesis:博士论文。
Proceedings: The proceedings of a conference.
程序:会议程序。
TechReport: A report published by a school or other
TechReport:由学校或其他公布的一份报告
Unpublished: A document having an author and title, but not
未发表的:有一个作者和标题文档,但不
输入字段----------Entry Fields----------
The ... argument of bibentry can be any number of BibTeX fields, including
... bibentry参数可以是任何数量的BibTEX领域,包括
address: The address of the publisher or other type of
地址:出版商或其他类型的地址
author: The name(s) of the author(s), either as a character string in the format described in the LaTeX book,
作者:作者(S)(S)的名称,无论是作为在乳胶书中描述的格式字符串,
booktitle: Title of a book, part of which is being cited.
booktitle:标题一本书,其中一部分被引用。
chapter: A chapter (or section or whatever) number.
章:一章(或部分或任何)数量。
editor: Name(s) of editor(s), same format as author.
编辑:编辑器的名称(S)(S),相同的格式为author。
institution: The publishing institution of a technical report.
机构:一份技术报告的出版机构。
journal: A journal name.
杂志:期刊名称。
note: Any additional information that can help the reader.
注:任何额外的信息,可以帮助读者。
number: The number of a journal, magazine, technical report,
日记,杂志,技术报告,编号:
pages: One or more page numbers or range of numbers.
网页:一个或多个页码或范围内的数字。
publisher: The publisher's name.
出版商:出版商的名称。
school: The name of the school where a thesis was written.
学校:论文写在学校的名称。
series: The name of a series or set of books.
系列:一系列或一套书的名称。
title: The work's title.
标题:工作的标题。
volume: The volume of a journal or multi-volume book.
体积:日记或量多卷书。
year: The year of publication.
年:出版年。
注意----------Note----------
The bibentry functionality is still experimental.
bibentry功能仍处于实验阶段。
举例----------Examples----------
## R reference[#R参考]
rref <- bibentry(
bibtype = "Manual",
title = "R: A Language and Environment for Statistical Computing",
author = person("R Development Core Team"),
organization = "R Foundation for Statistical Computing",
address = "Vienna, Austria",
year = 2010,
isbn = "3-900051-07-0",
url = "http://www.R-project.org/")
## Different printing styles[#不同的印刷样式]
print(rref)
print(rref, style = "Bibtex")
print(rref, style = "citation")
print(rref, style = "html")
print(rref, style = "latex")
print(rref, style = "R")
## References for boot package and associated book[#参考启动包和相关的书]
bref <- c(
bibentry(
bibtype = "Manual",
title = "boot: Bootstrap R (S-PLUS) Functions",
author = c(
person("Angelo", "Canty", role = "aut", comment = "S original"),
person(c("Brian", "D."), "Ripley", role = c("aut", "trl", "cre"),
comment = "R port", email = "ripley@stats.ox.ac.uk")
),
year = "2010",
note = "R package version 1.2-42",
url = "http://CRAN.R-project.org/package=boot",
key = "boot-package"
),
bibentry(
bibtype = "Book",
title = "Bootstrap Methods and Their Applications",
author = as.person("Anthony C. Davison [aut], David V. Hinkley [aut]"),
year = "1997",
publisher = "Cambridge University Press",
address = "Cambridge",
isbn = "0-521-57391-2",
url = "http://statwww.epfl.ch/davison/BMA/",
key = "boot-book"
)
)
## Combining and subsetting[#结合和子集]
c(rref, bref)
bref[2]
## Extracting fields[#提取领域]
bref$author
bref[1]$author
bref[1]$author[2]$email
## Convert to BibTeX[#转换到的BibTEX]
toBibtex(bref)
## Format in R style[#R风格的格式]
## One bibentry() call for each bibentry:[#之一bibentry()呼吁每个bibentry的:]
writeLines(paste(format(bref, "R"), collapse = "\n\n"))
## One collapsed call:[#倒塌呼叫:]
writeLines(format(bref, "R", collapse = TRUE))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|