Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

r char to numeric dataframe all columns

data[ , i] <- apply(data[ , i], 2,            # Specify own function within apply
                    function(x) as.numeric(as.character(x)))
Source by statisticsglobe.com #
 
PREVIOUS NEXT
Tagged: #char #numeric #dataframe #columns
ADD COMMENT
Topic
Name
7+7 =