Learn R Programming

ecd (version 0.6.4)

ecd.mpnum: Wrappers for ecd to maintain consistent type between mpfr and numeric

Description

Primarily to make sure x is converted to mpfr vector if it is not, when use.mpfr is set.

Usage

ecd.mpnum(object, x)
ecd.ifelse(object, test, yes, no)
ecd.sapply(object, x, FUN, ...)

Arguments

object
an object of ecd class
x
a vector of numeric or mpfr.
test
logical, test of ifelse.
yes
return values for true elements of test
no
return values for false elements of test
FUN
the function to be applied to each element of x
...
optional arguments to FUN

Value

a numeric or mpfr vector