This function requires the bigdata library section to be loaded.
bdNumeric(length = 0) as.bdNumeric(x) is.bdNumeric(x)
bdVector
,
or single-column
bdFrame
.
Any S-PLUS object for
is.bdNumeric
.
bdNumeric
and
as.bdNumeric
return an object of class
bdNumeric
, the big data analog of a
numeric
(
double
) vector.
is.bdNumeric
returns
TRUE
if
x
inherits from
bdNumeric
, and
FALSE
otherwise.
bdNumeric(10^9) is.bdNumeric( 1:30 ) # FALSE is.bdNumeric( as.bdNumeric(1:30) ) # TRUE as.bdNumeric(1:5) as.bdNumeric(c(a=1, b=2)) # names are discarded as.bdNumeric(c("1.2", "3.4")) # converted to numerical values as.bdNumeric(as.bdCharacter(c("1.2", "3.4"))) # ditto as.bdNumeric(factor(c("b","a","c"))) # three missing values as.bdNumeric(as.bdFactor(c("b","a","c"))) # ditto as.bdNumeric(matrix(1:6, 3)) # stops -- will not convert multiple columns