Learn R Programming

actuaryr (version 1.1.1)

as: Change into a chosen type

Description

Change into a chosen type

Usage

as(x, type)

Arguments

x

object to be coerced

type

type to be coerced into

The "type" parameter takes one of the three values: "integer", "double" or "character".

Value

the same objected with changed type

Examples

Run this code
# NOT RUN {
as(1:3, "character")
# }

Run the code above in your browser using DataLab