in.numeric | R Documentation |
This function converts data in a data frame or vector to a numeric scale.
in.numeric(
data,
values
)
data |
data input, as data frame or vector |
values |
vector with the values that should be transformed to numeric ones |
df <- c("yes", "no", "yes", "yes")
values = c("yes", "no")
in.numeric(df, values)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.