Big Data Numeric Vectors

DESCRIPTION:

Create or test for big data objects representing numeric vectors.

This function requires the bigdata library section to be loaded.

USAGE:

bdNumeric(length = 0)
as.bdNumeric(x)
is.bdNumeric(x)

REQUIRED ARGUMENTS:

length
integer giving the length of the returned object.
x
A vector, bdVector, or single-column bdFrame.

Any S-PLUS object for is.bdNumeric.

VALUE:

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.

SEE ALSO:

, , ,

EXAMPLES:

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