in.numeric: Transforming values in numeric scales

View source: R/in.numeric.R

in.numericR Documentation

Transforming values in numeric scales

Description

This function converts data in a data frame or vector to a numeric scale.

Usage

in.numeric(
    data, 
    values
)

Arguments

data

data input, as data frame or vector

values

vector with the values that should be transformed to numeric ones

Examples

df <- c("yes", "no", "yes", "yes")
values = c("yes", "no")
in.numeric(df, values)

samueltobler/behavdata documentation built on July 9, 2024, 11:33 a.m.