Constants: Built-in Constants

Description Usage Details References See Also Examples

Description

Constants built into R.

Usage

1
2
3
4
5

Details

R has a small number of built-in constants.

The following constants are available:

These are implemented as variables in the base namespace taking appropriate values.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

See Also

data, DateTimeClasses.

Quotes for the parsing of character constants, NumericConstants for numeric constants.

Examples

1
2
3
4
5
6
7
8
9
## John Machin (ca 1706) computed pi to over 100 decimal places
## 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")

robertzk/monadicbase documentation built on May 27, 2019, 10:35 a.m.