Learn R Programming

dataset (version 0.3.4)

as_numeric: Coerce a defined vector to numeric

Description

Coerce a defined vector to numeric

Usage

as_numeric(x)

# S3 method for haven_labelled_defined as_numeric(x)

Value

A numeric vector.

Arguments

x

A vector created with defined.

Examples

Run this code
as_numeric(iris_dataset$Petal.Length)

Run the code above in your browser using DataLab