as.all: Coercion without introduction of NAs

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/as.all.R

Description

Coercion without introduction of NAs

Usage

1
as.all(x, what)

Arguments

x

an object.

what

character of length 1.

Details

The function calls do.call(paste("as.", what, sep=""), list(x)), and checks whether any NAs were introduced.

Value

A vector of type what

Author(s)

Wolfgang Huber

See Also

as

Examples

1
  as.all(runif(5)*10, "integer")

prada documentation built on April 28, 2020, 7:52 p.m.