Learn R Programming

heims (version 0.4.0)

utilities: Utility functions

Description

Only included here because of the unusual nature of heims_data_dict.

Usage

AND()

OR()

never(v)

every(v)

always(v)

is.Date(v)

is.YearMonth(v)

nth_digit_of(x, n)

between(...)

or(...)

and(...)

if_else(...)

coalesce(...)

a %fin% tbl

rm_leading_0s(v)

as.integer64(v)

is.integer64(v)

force_integer(v)

ymd(...)

Arguments

v

A vector.

x, n

vectors

...

Passed to other functions

a

Element suspected to be in tbl

tbl

A lookup table.

Details

nth_digit_of returns the nth digit of the number starting from the units and going up in magnitude.

Examples

Run this code
# NOT RUN {
nth_digit_of(503, 1) == 1
# }

Run the code above in your browser using DataLab