View source: R/convert_to_numeric.R
convert_to_numeric | R Documentation |
When this function is invoked without specifying the column names to be
converted, the target columns are the ones returned by the scan_data()
function. Furthermore, it identifies columns where the proportion of numeric
values is at least twice the percentage of character values and performs the
conversion in them. The function internally makes call of the main function
from the numberize package.
convert_to_numeric(data, target_columns = NULL, lang = c("en", "fr", "es"))
data |
The input |
target_columns |
A |
lang |
A |
A <data.frame>
or <linelist>
wherein all the specified
or detected columns have been transformed into numeric format after the
conversion process.
dat <- convert_to_numeric(
data = readRDS(
system.file("extdata", "messy_data.RDS", package = "cleanepi")
),
target_columns = "age",
lang = "en"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.