gagolews / gagolews/stringx

There should be a different as.character.factor

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
28
Forks
0
PR merge metrics
No merged PRs in 30d

Description

So that at least the names attribute is preserved:

```
> as.character(as.factor(c(a=1, b=2)))
[1] "1" "2"
> as.factor(c(a=1, b=2))
a b
1 2
Levels: 1 2
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the as.character.factor entry point and reproduce the example in the issue to inspect the current handling of factor names. Determine the package's existing test location for this conversion, then add coverage showing that names are preserved when converting a factor; done means the example retains names a and b.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.