as.numeric.wNames.deprecated: as.numeric.wNames.deprecated

View source: R/CodeAndRoll2.R

as.numeric.wNames.deprecatedR Documentation

as.numeric.wNames.deprecated

Description

Converts any vector into a numeric vector, and puts the original character values into the names of the new vector, unless it already has names. Useful for coloring a plot by categories, name-tags, etc.

Usage

## S3 method for class 'wNames.deprecated'
as.numeric(vec)

Arguments

vec

input vector


vertesy/CodeAndRoll2 documentation built on Nov. 20, 2024, 5:23 a.m.