numericfy | R Documentation |
Replaces a specified column, which may contain factor or character variables, with uniquely-numbered integer values. Returns the new data frame and a data frame showing which factor corresponds to which integer, in a list.
numericfy(dat, column = 1, add = FALSE)
dat |
A data frame |
column |
The column number or name of the column to be converted. |
add |
If TRUE a new column is added, named ‘num<column>’, where '<column>'
is the value of the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.