Generate ‘regular’, i.e., arithmetic sequences. This is in lieu of methods for seq (dispatching on all three of from, to, and by.
seq
from
to
by
seqMpfr(from = 1, to = 1, by = ((to - from)/(length.out - 1)), length.out = NULL, along.with = NULL, …)
the starting and (maximal) end value (numeric or "'>mpfr") of the sequence.
"'>mpfr"
number (numeric or "'>mpfr"): increment of the sequence.
desired length of the sequence. A non-negative number, which will be rounded up if fractional.
take the length from the length of this argument.
arguments passed to or from methods.
a ‘vector’ of class "'>mpfr", when one of the first three arguments was.
see seq (default method in package base), whose semantic we want to replicate (almost).
The documentation of the base function seq; mpfr
mpfr
# NOT RUN { seqMpfr(0, 1, by = mpfr(0.25, prec=88)) seqMpfr(7, 3) # -> default prec. # } # NOT RUN { <!-- % {dontshow} -- but test --> # }
Run the code above in your browser using DataCamp Workspace