-
-
Save biamuniz/26d9fd8d416563363ee5591162f61f5b to your computer and use it in GitHub Desktop.
Script para ler arquivos .dbc e converter em .csv
This file contains 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
#### Script para ler arquivos .dbc e converter em .csv | |
# 0. Faz o upload do arquivo na pastinha daqui :) | |
# 1. Instala o pacote | |
install.packages("read.dbc") | |
# 2. Carrega o pacote | |
library(read.dbc) | |
# 3. Cria um objeto para abrir o arquivo (aqui eu chamei o objeto de dados) | |
dados <- read.dbc("nome_do_arquivo_que_vc_fez_upload.dbc") | |
# 4. Salva o objeto em csv (pode colocar o nome que vc prefirir; coloquei "arquivo_final.csv". Vai aparecer o arquivo na pastinha lateral) | |
write.csv2(dados, "arquivo_final.csv") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment