as.all {prada} | R Documentation

## Coercion without introduction of NAs

### Description

Coercion without introduction of NAs

### Usage

    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 http://www.dkfz.de/abt0840/whuber

### See Also

`as`

### Examples

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

[Package prada version 1.10.1 Index]