extract_number_from_column | R Documentation |
This function takes a character vector of the form 'name1' where '1' may be any number. It extracts the number and resets that character vector to just the number. It then converts the number to an integer.
extract_number_from_column(df, col)
df |
a data.table |
col |
column from which to extract a number |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.