pharmaverse / pharmaverse/formatters

Function format.time

Open
#116 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement sme
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.