as.numeric.wNames.deprecated | R Documentation |
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.
## S3 method for class 'wNames.deprecated'
as.numeric(vec)
vec |
input vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.