numdum {dateutils}R Documentation

Dummies for Numeric Data

Description

Create dummy variables for unique numeric values in 'x'

Usage

numdum(x)

Arguments

x

Numeric vector

Value

Dummy variables for each unique value in the data

Examples

numdum(c(3,3,5,3,4,3,5,4,4,5)) ## dummies for each of 3, 4, and 5

[Package dateutils version 0.1.5 Index]