//
SIZE(18){COLOR(blue){Rの組み込み定数文字ベクトル、定数値等}}
-組込み定数文字ベクトル、定数値
> LETTERS
[1] "A" "B" "C" "D" "E" "F" "G" "H" "I" "J" "K" "L" "M" "N" "O" "P" "Q" "R" "S"
[20] "T" "U" "V" "W" "X" "Y" "Z"
> letters
[1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s"
[20] "t" "u" "v" "w" "x" "y" "z"
> month.abb
[1] "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"
> month.name
[1] "January" "February" "March" "April" "May" "June"
[7] "July" "August" "September" "October" "November" "December"
> options(digits=22); pi
[1] 3.141592653589793
-浮動小数演算関連定数値 .Machine
> noquote(unlist(format(.Machine)))
double.eps double.neg.eps double.xmin
2.2204460492503131e-16 1.1102230246251565e-16 2.2250738585072014e-308
double.xmax double.base double.digits
1.7976931348623157e+308 2 53
double.rounding double.guard double.ulp.digits
5 0 -52
double.neg.ulp.digits double.exponent double.min.exp
-53 11 -1022
double.max.exp integer.max sizeof.long
1024 2147483647 4
sizeof.longlong sizeof.longdouble sizeof.pointer
8 12 4
-プラットフォーム仕様(Linux のケース) .Platform
> noquote(unlist(format(.Platform)))
OS.type file.sep dynlib.ext GUI endian
unix / .so X11 little
Mac OS X では
> noquote(unlist(format(.Platform)))
OS.type file.sep dynlib.ext GUI endian
unix / .so AQUA big
-コンパイル時の指定
> capabilities()
jpeg png tcltk X11 GNOME libz http/ftp sockets
TRUE TRUE TRUE TRUE FALSE TRUE TRUE TRUE
libxml fifo cledit IEEE754 bzip2 PCRE
TRUE TRUE TRUE TRUE TRUE TRUE
-Rのバージョン
> noquote(unlist(format(R.Version())))
platform arch os system
i686-pc-linux-gnu i686 linux-gnu i686, linux-gnu
status major minor year
2 0.0 2004
month day language
10 04 R
Mac OS X では
platform arch
powerpc-apple-darwin6.8 powerpc
os system
darwin6.8 powerpc, darwin6.8
status major
2
minor year
0.0 2004
month day
10 04
language
R