Skip to content

Small typo in 3.5 format() outputs #7

@yifan2wang

Description

@yifan2wang
  1. nsmall is the minimum number of digits to the right of the decimal point instead of digits

digits The number of digits to the right of the decimal place.
The original code is at Line 202 in r4strings/printing.Rmd

In the last output example of argument big.mark, the output is printed as "1.23e+08", which should be "123,456,789" instead.

# big.mark
format(123456789, big.mark = ",")
#> [1] "1.23e+08"

The original code is at Line 243 in r4strings/printing.Rmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions