Use "dbl" for Doubles

Open
#7,645 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

No file or test is named. Start by locating the data.table code that formats column type labels and check existing tests for display output. Done means double columns are labeled "dbl" rather than "num", while integer and double columns remain distinguishable.

Written by the indexing model from the issue text.

Description

Since both doubles and integers are numeric. It is confusing to label a data.table column of doubles as "num". In tibble, such a column is labelled as "dbl", which is more accurate.

> is.numeric(1)
[1] TRUE
> is.numeric(1L)
[1] TRUE
> 
Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

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.

More from Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.