We could use parse_number
from readr
package which removes any non-numeric characters.
library(readr)
parse_number(df$COL1)
#[1] 54345 65231 76234
More Related Contents:
- How to add leading zeros?
- How to disable scientific notation?
- Formatting Decimal places in R
- How to convert variable with mixed date formats to one format?
- How to format a number as percentage in R?
- How can I disable scientific notation?
- converting multiple columns from character to numeric format in r
- Formatting dates with scale_x_date in ggplot2
- How to convert integer number into binary vector?
- What is integer overflow in R and how can it happen?
- What’s the difference between integer class and numeric class in R
- How to convert character of percentage into numeric in R
- How to convert time (mm:ss) to decimal form in R
- How to convert character of percent into numeric in R
- Preserving large numbers
- Simplified dput() in R
- Clarification of L in R
- How to remove leading “0.” in a numeric R variable
- export data frames to Excel via xlsx with conditional formatting
- Converting numeric time to datetime POSIXct format in R
- Faster ways to calculate frequencies and cast from long to wide
- How can I remove all duplicates so that NONE are left in a data frame?
- strptime, as.POSIXct and as.Date return unexpected NA
- Error in plot.new() : figure margins too large in R
- How can we make xkcd style graphs?
- Sort a data.table fast by Ascending/Descending order
- Join R data.tables where key values are not exactly equal–combine rows with closest times
- set ggplot plots to have same x-axis width and same space between dot plot rows
- Split a string every 5 characters
- Using a static (prebuilt) PDF vignette in R package