Learn R Programming

R4RNA (version 1.0.0)

Log10 Space Operations: Log base 10 sequence, floor and ceiling

Description

Sequence, floor and ceiling operations in log 10 space.

Usage

logseq(from, to, length.out)
logfloor(x)
logceiling(x)

Arguments

from, to
Positive non-zero values to start and end sequence, respectively.
length.out
The number of elements the resulting sequence should containg. If absent, function will attempt to generate numbers factors of 10 apart.
x
A value to round.

Value

logseq returns an array numbers evenly distanced in log10-space.logfloor and logceiling return a value that is 10 raised to an integer number.

Examples

Run this code
    logseq(1e-10, 1e3)
    logseq(1e-10, 1e3, length.out = 10)
    logceiling(2.13e-6)
    logfloor(2.13e-6)

Run the code above in your browser using DataLab