apache / apache/arrow

[R] Add support for locale-specific day of week (and month of year?) returns from timestamp accessor functions

Open
#28,834 4 comments 0 reactions 0 assignees View on GitHub
Component: R good-first-issue Type: task
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

The R binding for the wday date accessor added in this PR currently doesn't support returning the string representation of the day of the week (e.g. "Mon") and only supports the numeric representation (e.g. 1).

We should implement this, though discussion should be had about whether this belongs at the R or C++ level.

**Reporter**: [Nicola Crane](https://issues.apache.org/jira/browse/ARROW-13133) / @thisisnic
#### Related issues:
- [[R] strftime bindings](https://github.com/apache/arrow/issues/29303) (is blocked by)

**Note**: *This issue was originally created as [ARROW-13133](https://issues.apache.org/jira/browse/ARROW-13133). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start with the R binding for the wday date accessor introduced in pull request #10507, and compare its numeric return behavior with the requested locale-specific day and month strings. Resolve whether the change belongs in the R binding or at the C++ level; done means the accessor can return localized names rather than only numeric values.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, r
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.