DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+2 =
Submit