Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dados_rastreador
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Camex Público
dados_rastreador
Commits
b20b61fc
Commit
b20b61fc
authored
Nov 04, 2025
by
Miguel Guerrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Truncar descricoes
parent
46428f0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
scripts/gera_correlacoes.R
scripts/gera_correlacoes.R
+19
-6
No files found.
scripts/gera_correlacoes.R
View file @
b20b61fc
...
...
@@ -174,7 +174,7 @@ write_parquet(correlacao_completa, "dados_gerados/dataset_naladi.parquet")
# Processa e organiza descrições NCM --------------------------------------
# obtem abas disponíveis
abas
<-
excel_sheets
(
path_descricoes
)
abas
<-
readxl
::
excel_sheets
(
path_descricoes
)
# obtem nome da ultima aba
ultimo_sh
<-
abas
[
length
(
abas
)]
# remove ultima aba
...
...
@@ -258,11 +258,24 @@ descricoes_por_sh <- descricoes_por_sh %>%
# necessário escapar ' para não dar problema na geração dos tooltips dos
# diagramas
descricoes_por_sh
<-
descricoes_por_sh
%>%
mutate
(
descricao
=
str_replace_all
(
mutate
(
descricao
=
str_replace_all
(
descricao
,
"'"
,
"\\\\'"
))
))
%>%
mutate
(
descricao
=
str_replace_all
(
descricao
,
"\\r\\n"
,
" "
),
descricao
=
str_trunc
(
descricao
,
1020
,
'left'
)
)
descricoes_por_sh
%>%
write_parquet
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment