Skip to content

Instantly share code, notes, and snippets.

@qoelet
Created April 29, 2014 04:12
Show Gist options
  • Save qoelet/11390490 to your computer and use it in GitHub Desktop.
Save qoelet/11390490 to your computer and use it in GitHub Desktop.
Summing up numbers coded as factors
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