Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0046 assign datetime #52

Merged
merged 87 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
1c4501f
First mockup of `hardcode_no_ct()`
ramiromagno Feb 8, 2024
faef0b1
Update `hardcode_no_ct()`
ramiromagno Feb 17, 2024
fd63b37
Align `hardcode_no_ct()` code style with Ramm's expectations
ramiromagno Feb 21, 2024
80d3943
Add `hardcode_*()` and `assign_*()` functions
ramiromagno Feb 22, 2024
ec5a9e4
hardcode_no_ct algorithm code changes (#45)
rammprasad Mar 13, 2024
0333d95
Add `oak_id_vars()`
ramiromagno Mar 14, 2024
7fd7716
Fix typo in `recode()`
ramiromagno Mar 14, 2024
802aacc
Simplify `oak_id_vars()` docs
ramiromagno Mar 14, 2024
7fd07b4
Update `assign_*` and `hardcode_*` implementations
ramiromagno Mar 14, 2024
9cc26d1
Introduce memoisation of `ct_mappings()`
ramiromagno Mar 14, 2024
329feaa
Update of README introductory paragraph
ramiromagno Mar 14, 2024
29be830
Merge from main
ramiromagno Mar 14, 2024
7720c05
Update hardcode_* functions' interface
ramiromagno Mar 24, 2024
e87ca66
Add `contains_oak_id_vars()` function
ramiromagno Mar 24, 2024
a5e61f0
Update `contains_oak_id_vars()` doc examples
ramiromagno Mar 24, 2024
a60ccd6
Update `sdtm_harcode()` and dependant functions
ramiromagno Mar 24, 2024
cd89804
Update `assign_*` and `hardcore_*` related functions
ramiromagno Mar 25, 2024
ae2da80
Automatic renv profile update.
ramiromagno Mar 25, 2024
30857e3
Automatic renv profile update.
ramiromagno Mar 25, 2024
73ebe2d
Make `ct` and `cl` parameters mandatory for `assign_ct()`
ramiromagno Mar 27, 2024
0eb4677
Add functions ct importing
ramiromagno Mar 27, 2024
dfd7710
Bring `hardcode*()` and `assign*()` related assertions closer to user…
ramiromagno Mar 27, 2024
6652aae
Add lagging behind Rd for `ct_example()`
ramiromagno Mar 27, 2024
59bcc71
Add `assert_ct()`
ramiromagno Mar 27, 2024
7f9f388
Add ct assertions
ramiromagno Mar 27, 2024
4c81ae1
Merge branch '0040_hardcode_no_ct' of github.com:pharmaverse/sdtm.oak…
ramiromagno Mar 27, 2024
4ed5c41
Remove R/.gitkeep
ramiromagno Apr 1, 2024
ca26d22
Add unit tests for `ct_vars()`
ramiromagno Apr 1, 2024
0456d55
Update dependencies
ramiromagno Apr 1, 2024
0e1eab4
Export `ct_vars()`
ramiromagno Apr 1, 2024
84a4f7d
Update `assert_ct()` docs
ramiromagno Apr 1, 2024
7cf1072
Clarify `assign_ct()`/`assign_no_ct()` doc
ramiromagno Apr 1, 2024
7dff0aa
Improve grammar in doc
ramiromagno Apr 1, 2024
cb2f2e8
Remove last empty line from ct example file
ramiromagno Apr 1, 2024
454b7d8
Add documentation to `sdtm_assign()` and ct-related unit tests
ramiromagno Apr 1, 2024
fafe01b
Update hardcode-related fns
ramiromagno Apr 1, 2024
3a4b355
Changes to meet linter issues
ramiromagno Apr 1, 2024
37575b2
Code reformatting
ramiromagno Apr 1, 2024
c176654
Code reflow
ramiromagno Apr 1, 2024
dafcfef
Improve `assert_cl()` docs
ramiromagno Apr 1, 2024
e128779
Update `read_ct()` docs
ramiromagno Apr 1, 2024
0895764
Automatic renv profile update.
ramiromagno Apr 1, 2024
339039e
Automatic renv profile update.
ramiromagno Apr 1, 2024
ab9db14
Add units tests for `recode()`
ramiromagno Apr 1, 2024
52c52fa
Remove `are_to_recode()` function
ramiromagno Apr 1, 2024
229c0bd
Add units tests for `assert_ct()`
ramiromagno Apr 1, 2024
c83bfdf
Add one more test for `assert_ct()`
ramiromagno Apr 1, 2024
a362578
Add a basic unit test for `ct_mappings()`
ramiromagno Apr 1, 2024
934a15c
Fill in some doc details of ct-related functions
ramiromagno Apr 2, 2024
0dcf0fc
Remove leftover doc text in `assign`
ramiromagno Apr 2, 2024
a44c865
Update website's reference
ramiromagno Apr 2, 2024
efb423f
Styling update
ramiromagno Apr 2, 2024
365fa09
Bump version and update NEWS
ramiromagno Apr 2, 2024
b267610
Fix a few lintr issues
ramiromagno Apr 2, 2024
cbd38eb
Merge branch '0040_hardcode_no_ct' of github.com:pharmaverse/sdtm.oak…
ramiromagno Apr 2, 2024
9cb23f5
Add examples to `ct_map()` doc
ramiromagno Apr 2, 2024
1bebdd8
Fix typo in `problems()` doc
ramiromagno Apr 2, 2024
a8f1bf5
Fix typo
ramiromagno Apr 2, 2024
92e490c
Initial mockup of `assign_datetime()`
ramiromagno Apr 2, 2024
d9031fd
Add `.warn` parameter to `create_iso8601()` internals
ramiromagno Apr 3, 2024
5987684
Remove lint issues
ramiromagno Apr 3, 2024
2791ef0
Replace `.data` usage in tidyselect expressions
ramiromagno Apr 3, 2024
2a8dbf5
Variable renaming
ramiromagno Apr 4, 2024
a718207
Finish pending renaming of variables
ramiromagno Apr 4, 2024
8cc8dcb
Rename code-list to codelist
ramiromagno Apr 4, 2024
609b60e
Fix style
ramiromagno Apr 4, 2024
e8beefc
Fix style
ramiromagno Apr 4, 2024
e4e7c99
Merge branch '0040_hardcode_no_ct' into 0046_assign_datetime
ramiromagno Apr 4, 2024
b854a10
Add assertions to `assign_datetime()`
ramiromagno Apr 4, 2024
c737310
Add merge example to `assign_datetime()` doc
ramiromagno Apr 4, 2024
bbbadd3
Style changes
ramiromagno Apr 4, 2024
54a6460
Style changes (.Rd)
ramiromagno Apr 4, 2024
79e79da
Bump version and update news
ramiromagno Apr 4, 2024
42d4d5a
Update `ct_map()` doc example
ramiromagno Apr 10, 2024
66644eb
Make tibbles more readable in doc examples
ramiromagno Apr 10, 2024
bb2e0d2
Rename `ct_cltc` to `ct_clst`
ramiromagno Apr 10, 2024
97439f6
Merge branch '0040_hardcode_no_ct' into 0046_assign_datetime
ramiromagno Apr 10, 2024
73fe395
Make tibble more readable in `assign_datetime()` doc examples
ramiromagno Apr 10, 2024
b17161c
Fix bug in `assign_datetime`
ramiromagno May 4, 2024
3dba6d9
Linting
ramiromagno May 4, 2024
04254ac
Update styling
ramiromagno May 4, 2024
391df0a
Add example with date and time to `assign_datetime()` docs
ramiromagno May 14, 2024
372f147
Avoid backslash hell (մերսի)
ramiromagno May 14, 2024
6801222
Update `ct_spec_vars()` docs' examples
ramiromagno May 14, 2024
994012b
Fix typo in `assign_datetime()` documentation
ramiromagno May 14, 2024
1230e7c
Fix typo in `ct_map()` docs
ramiromagno May 14, 2024
ed9a24d
Merge branch 'main' into 0046_assign_datetime
ramiromagno May 14, 2024
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
2 changes: 1 addition & 1 deletion R/assign_datetime.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#' the variables indicated in `id_vars`. This parameter is optional, see
#' section Value for how the output changes depending on this argument value.
#' @param id_vars Key variables to be used in the join between the raw dataset
#' (`raw_dat`) and the target data set (`raw_dat`).
#' (`raw_dat`) and the target data set (`tgt_dat`).
#' @param .warn Whether to warn about parsing failures.
#'
#' @returns The returned data set depends on the value of `tgt_dat`:
Expand Down
2 changes: 1 addition & 1 deletion R/ct.R
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ ct_mappings <- function(ct_spec, from = ct_spec_vars("from"), to = ct_spec_vars(
#' # Note that if the controlled terminology mapping is restricted to a codelist
#' # code, e.g. C71113, then only `"/day"` and `"Every 2 hours"` get mapped to
#' # `"QD"` and `"Q2H"`, respectively; remaining terms won't match given the
#' # codelist code # restriction, and will be mapped to an uppercase version of
#' # codelist code restriction, and will be mapped to an uppercase version of
#' # the original terms.
#' ct_map(x = terms, ct_spec = ct_spec, ct_clst = "C71113")
#'
Expand Down
2 changes: 1 addition & 1 deletion man/assign_datetime.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/ct_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading