Skip to content

Instantly share code, notes, and snippets.

@Plaudenslager
Created May 30, 2016 03:03
Show Gist options
  • Save Plaudenslager/d05b9ed727e258d9c963fff3e4462532 to your computer and use it in GitHub Desktop.
Save Plaudenslager/d05b9ed727e258d9c963fff3e4462532 to your computer and use it in GitHub Desktop.
Convert a currency column (with commas for thousands separator) into numeric
clean_data <- mutate(raw_data, Software_Amount_USD = as.numeric(sub(",","", Software_Amount___USD)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment