as: Change into a chosen type

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Change into a chosen type

Usage

1
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

1
as(1:3, "character")

actuaryr documentation built on April 14, 2020, 6:15 p.m.