Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f1e1903
feat: Add calculate_lmdi function and fill_growth to gapfilling
jinfama Dec 12, 2025
adc0359
test: Add comprehensive tests for fill_growth function
jinfama Dec 12, 2025
8384485
fix: corregir errores de linting (return_linter, indentation_linter)
jinfama Dec 15, 2025
ce27982
fix: añadir data.table y tibble a Imports, eliminar conflicto de := e…
jinfama Dec 15, 2025
42f3510
update to fix edit conflicts
jinfama Dec 15, 2025
4f58c43
change linear_fill to fill_linear
eduaguilera Dec 16, 2025
1f5f4dc
remove the old function proxy_fill
eduaguilera Dec 16, 2025
68032d1
change sum_fill to fill_sum
eduaguilera Dec 16, 2025
9b8f734
add smoothing to sum_fill
eduaguilera Dec 17, 2025
ffcc84b
harmonize variable names, using the naming conventions of fill_proxy …
eduaguilera Dec 17, 2025
714fc54
add time_col to fill_sum (more robust to un-sorted datasets, more con…
eduaguilera Dec 17, 2025
fa1128e
regnerate documentation
eduaguilera Dec 17, 2025
7c13f48
Update _pkgdown.yml: add fill_growth and new "Decomposition analysis"…
eduaguilera Dec 17, 2025
a1ca551
Remove use of @importFrom
lbm364dl Dec 19, 2025
f2b7a66
Split into smaller functions
lbm364dl Dec 19, 2025
8afd0c2
Add more copilot instructions
lbm364dl Dec 19, 2025
5eccb16
Apply air format
lbm364dl Dec 19, 2025
0e535b4
Add necessary import
lbm364dl Dec 19, 2025
c775d97
Take helper functions outside fill_growth
lbm364dl Dec 19, 2025
92d4c01
Add more readable code instructions
lbm364dl Dec 19, 2025
f3a94a5
Split fill_growth into smaller functions
lbm364dl Dec 19, 2025
1615656
Simplify arg validation
lbm364dl Dec 19, 2025
65fd9b1
Split helper functions into smaller functions
lbm364dl Dec 19, 2025
357395b
Show example output
lbm364dl Dec 19, 2025
b3e2faf
Fix lint errors
lbm364dl Dec 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Description: A set of tools for processing and analyzing data developed in the
License: MIT + file LICENSE
Imports:
cli,
data.table,
dplyr,
fs,
FAOSTAT,
Expand All @@ -26,6 +27,7 @@ Imports:
readr,
rlang,
stringr,
tibble,
tidyr,
withr,
yaml,
Expand All @@ -40,8 +42,7 @@ Suggests:
knitr,
pointblank,
rmarkdown,
testthat (>= 3.0.0),
tibble
testthat (>= 3.0.0)
Config/testthat/edition: 3
VignetteBuilder: knitr
URL: https://eduaguilera.github.io/whep/, https://github.com/eduaguilera/whep
Expand Down
47 changes: 43 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,58 @@ export(add_item_cbs_name)
export(add_item_prod_code)
export(add_item_prod_name)
export(build_supply_use)
export(calculate_lmdi)
export(expand_trade_sources)
export(fill_growth)
export(fill_linear)
export(fill_sum)
export(get_bilateral_trade)
export(get_faostat_data)
export(get_feed_intake)
export(get_primary_production)
export(get_primary_residues)
export(get_processing_coefs)
export(get_wide_cbs)
export(linear_fill)
export(proxy_fill)
export(sum_fill)
export(whep_list_file_versions)
export(whep_read_file)
importFrom(data.table,":=")
importFrom(data.table,as.data.table)
importFrom(data.table,fifelse)
importFrom(data.table,setnames)
importFrom(data.table,setorderv)
importFrom(data.table,shift)
importFrom(dplyr,across)
importFrom(dplyr,all_of)
importFrom(dplyr,any_of)
importFrom(dplyr,arrange)
importFrom(dplyr,bind_rows)
importFrom(dplyr,distinct)
importFrom(dplyr,filter)
importFrom(dplyr,first)
importFrom(dplyr,group_by)
importFrom(dplyr,group_modify)
importFrom(dplyr,if_else)
importFrom(dplyr,left_join)
importFrom(dplyr,mutate)
importFrom(dplyr,n)
importFrom(dplyr,n_distinct)
importFrom(dplyr,pull)
importFrom(dplyr,select)
importFrom(dplyr,summarise)
importFrom(dplyr,ungroup)
importFrom(pins,pin_fetch)
importFrom(rlang,":=")
importFrom(rlang,.data)
importFrom(rlang,enquo)
importFrom(rlang,quo_is_null)
importFrom(rlang,syms)
importFrom(stats,approx)
importFrom(stats,ave)
importFrom(stats,setNames)
importFrom(stringr,str_detect)
importFrom(stringr,str_extract_all)
importFrom(stringr,str_match)
importFrom(tibble,as_tibble)
importFrom(tibble,tibble)
importFrom(tibble,tribble)
importFrom(tidyr,complete)
importFrom(zoo,rollmean)
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# whep 0.2.0

* Add gapfilling functions `linear_fill()`, `proxy_fill()`, `sum_fill()` (@eduaguilera, #11).
* Add gapfilling functions `fill_linear()`, `fill_sum()` (@eduaguilera, #11).
* Now examples can't fail because of unavailable Internet resources (#58).

# whep 0.1.0
Expand Down
Loading
Loading