Learn R Programming

analyz (version 1.4)

Analyz.coerceType: Method Analyz.coerceType

Description

Method for variable type coercion.

Usage

Analyz.coerceType(object, variable, type)
"Analyz.coerceType"(object, variable, type)

Arguments

object
Object instance.
variable
Variable to be coerced.
type
Data type to coerce the informed variable.

Value

result Coerced variable.

Examples

Run this code
obj <- new("Analyz")
v_numeric <- Analyz.coerceType(obj, '2', 'numeric')

Run the code above in your browser using DataLab