numericR Documentation

Numeric Vectors

Description

Coerces or test objects of type "numeric". is.numeric is a more general test of an object being interpretable as numbers.

Usage

## S4 method for signature 'fm'
as.numeric(x)

## S4 method for signature 'fmV'
as.numeric(x)

## S4 method for signature 'fm'
is.numeric(x)

## S4 method for signature 'fmV'
is.numeric(x)

Arguments

x

a FlashR object to be coerced or tested.

Value

as.numeric returns a numeric FlashR object, is.numeric returns a logical value.

Examples

vec <- as.numeric(fm.runif(1000, min=0, max=10))
is.numeric(vec)