Adam Laiacano

I'm a data engineer working here at tumblr, living in Brooklyn, and
Currently listening to: .

2012-01-09 Notes: 4

R has an interesting list of built-in constants

Of all of the mathematical and scientific constants, they decided to go with lower/upper case letters, month names/abbreviations, and pi.


Constants {base}           R Documentation

Built-in Constants

Description

Constants built into R.

Usage

LETTERS
letters
month.abb
month.name
pi

Details

R has a small number of built-in constants.

The following constants are available:

  • LETTERS: the 26 upper-case letters of the Roman alphabet;
  • letters: the 26 lower-case letters of the Roman alphabet;
  • month.abb: the three-letter abbreviations for the English month names;
  • month.name: the English names for the months of the year;
  • pi: the ratio of the circumference of a circle to its diameter.

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


  1. blogbourse reblogged this from adamlaiacano
  2. lvn-jobs reblogged this from adamlaiacano
  3. cna-certification-a reblogged this from adamlaiacano
  4. dataanxiety reblogged this from adamlaiacano and added:
    I agree, this does seem like an odd choice. First thought that crossed my mind: Why pi but not e?
  5. adamlaiacano posted this