Learn R Programming

PVplr (version 0.1.2)

nc: function to convert to character then numeric

Description

The function is a shorthand for converting factors to numeric

Usage

nc(x)

Value

Returns supplied parameter as numeric

Arguments

x

any factor to convert to numeric

Examples

Run this code
num <- nc(test_df$power)

Run the code above in your browser using DataLab