baytrends (version 1.1.0)

as.double.qw: Numeric Representations

Description

Converts data to numeric values: method for "qw" data.

Usage

# S3 method for qw
as.double(x, ...)

Arguments

x

the object to be converted.

further arguments passed to or from other methods.

Value

A numeric representation of x, using a method commonly refered to as simple substitution.

Examples

Run this code
# NOT RUN {
## Create a simple qw object 
Test.qw <- as.qw(c(1,2,3,2,4,4), c("<", "<", "<", " ", " ", " "), "", NA_real_,
"Miss", "None", "Mine", "TEST", "")
as.double(Test.qw)
as.numeric(Test.qw)

# }

Run the code above in your browser using DataLab