pharmaverse / pharmaverse/formatters
Function format.time
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 20
- Forks
- 8
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 1
Description
Function format.time & Format for time
A time variable may be relevant in pharmacology studies, in hormone assays and in basic research. A format.time function may be useful in such instances.
A basic version of such a function is available on my GitHub page:
https://github.com/discoleo/R/blob/master/Stat/Tools.DateTime.R
Notes:
- the convenience argument collapse is useful to format a time range: its applicability may depend where the function is used;
- Documentation for format_value: does NOT provide details about the formats; it seems that they are described only in the vignette;
- using the generic name format.values (or format.value) would enable the search using methods(format);
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the linked Stat/Tools.DateTime.R implementation and the format_value documentation and vignette. Resolve the intended time formats, collapse behavior, and generic naming before defining the function; done means the agreed API and its documentation are implemented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100