base_digits {ds4psy}R Documentation

Base digits: Sequence of numeric symbols (as named vector)

Description

base_digits provides numeral symbols (digits) for notational place-value systems with arbitrary bases (as a named character vector).

Usage

base_digits

Format

An object of class character of length 62.

Details

Note that the elements (digits) are character symbols (i.e., numeral digits "0"-"9", "A"-"F", etc.), whereas their names correspond to their numeric values (from 0 to length(base_digits) - 1).

Thus, the maximum base value in conversions by base2dec or dec2base is length(base_digits).

See Also

base2dec converts numerals in some base into decimal numbers; dec2base converts decimal numbers into numerals in another base; as.roman converts integers into Roman numerals.

Other numeric functions: base2dec(), dec2base(), is_equal(), is_wholenumber(), num_as_char(), num_as_ordinal(), num_equal()

Other utility functions: base2dec(), dec2base(), is_equal(), is_vect(), is_wholenumber(), num_as_char(), num_as_ordinal(), num_equal()

Examples

base_digits          # named character vector, zero-indexed names
length(base_digits)  # 62 (maximum base value)
base_digits[10]      # 10. element ("9" with name "9") 
base_digits["10"]    # named element "10" ("A" with name "10")
base_digits[["10"]]  # element named "10" ("A")


[Package ds4psy version 1.0.0 Index]