Skip to content

Instantly share code, notes, and snippets.

@JorgeMiguelGomes
Created April 30, 2021 11:23
Show Gist options
  • Save JorgeMiguelGomes/466438b095260acd76e5893e3edfe98a to your computer and use it in GitHub Desktop.
Save JorgeMiguelGomes/466438b095260acd76e5893e3edfe98a to your computer and use it in GitHub Desktop.
Data Treatment
library(reshape2)
bubbles <- read.csv("bubbles.csv")
bubbleslong <- melt(bubbles,id.vars = c("CONCELHO","LAT","LONG"),
variable.name = "DATA",value.name = "INC")
write.csv(bubbleslong,"bubbleslong.csv",row.names = TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment