Answers for "r char to numeric dataframe all columns"

0

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)))
Posted by: Guest on February-03-2022

Code answers related to "r char to numeric dataframe all columns"

Browse Popular Code Answers by Language