Learn R Programming

StratigrapheR (version 1.3.1)

encase: Encases two numbers between multiples of a given number

Description

Encases two numbers between multiples of a given number

Usage

encase(x1, x2, n)

Value

the multiples of n directly encompassing x1 and x2

Arguments

x1

the first value of the interval

x2

the second value of the interval (can be higher or lower, but never equal to x1)

n

the number to find the multiples from

See Also

Similar function : casing

Examples

Run this code
encase(5,1,5)

Run the code above in your browser using DataLab