Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

Extract number from string field R

df$clean_column<-gsub("[^0-9]", "", df$dirty_column)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Extract #number #string #field #R
ADD COMMENT
Topic
Name
6+2 =