Created
April 29, 2014 04:12
-
-
Save qoelet/11390490 to your computer and use it in GitHub Desktop.
Summing up numbers coded as factors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total = sum( | |
sapply( | |
sapply(my_df$ratios, as.character), | |
as.numeric) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment