Constants(base)
Constants()所属R语言包:base
Built-in Constants
内置常量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Constants built into R.
成河建成的常量
用法----------Usage----------
LETTERS
letters
month.abb
month.name
pi
Details
详情----------Details----------
R has a small number of built-in constants.
R有一个内置常量的少数。
The following constants are available:
以下常量可供选择:
LETTERS: the 26 upper-case letters of the Roman alphabet;
LETTERS:26个罗马字母大写字母;
letters: the 26 lower-case letters of the Roman alphabet;
letters:26罗马字母的小写字母;
month.abb: the three-letter abbreviations for the English month names;
month.abb:英语月份名称的三个字母缩写;
month.name: the English names for the months of the year;
month.name:今年几个月的英文名称;
pi: the ratio of the circumference of a circle to its diameter.
pi:到其直径的圆的周长的比例。
These are implemented as variables in the base namespace taking appropriate values.
这些基地采取适当的值的命名空间中的变量实现。
参考文献----------References----------
The New S Language. Wadsworth & Brooks/Cole.
参见----------See Also----------
data, DateTimeClasses.
data,DateTimeClasses。
Quotes for the parsing of character constants, NumericConstants for numeric constants.
Quotes字符常量分析,NumericConstants数字常量。
举例----------Examples----------
## John Machin (ca 1706) computed pi to over 100 decimal places[#,约翰MACHIN(CA 1706)计算圆周率超过100位小数]
## using the Taylor series expansion of the second term of[#使用的第二任期内的泰勒级数展开]
pi - 4*(4*atan(1/5) - atan(1/239))
## months in English[#个月的中英文]
month.name
## months in your current locale[在当前语言环境#个月]
format(ISOdate(2000, 1:12, 1), "%B")
format(ISOdate(2000, 1:12, 1), "%b")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|