Skip to content

Commit

Permalink
Typo in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jhorzek committed Nov 23, 2024
1 parent dd63a29 commit dce4154
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ wb <- to_excel(tbl = tbl,
#### Formatting Data Types

`tablespan` also allows formatting specific data types. Let's assume that we want
to round all doubles to 3 instead of the default four digits.
to round all doubles to 3 instead of the default 2 digits.
To this end, we use the `create_data_styles` function, where we specify (1) a
function that checks for the data type we want to style (here `is.double`) and
(2) a style for all columns that match that style:
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,10 @@ wb <- to_excel(tbl = tbl,
#### Formatting Data Types

`tablespan` also allows formatting specific data types. Let’s assume
that we want to round all doubles to 3 instead of the default four
digits. To this end, we use the `create_data_styles` function, where we
specify (1) a function that checks for the data type we want to style
(here `is.double`) and (2) a style for all columns that match that
style:
that we want to round all doubles to 3 instead of the default 2 digits.
To this end, we use the `create_data_styles` function, where we specify
(1) a function that checks for the data type we want to style (here
`is.double`) and (2) a style for all columns that match that style:

``` r
double_style <- create_data_styles(double = list(test = is.double,
Expand Down

0 comments on commit dce4154

Please sign in to comment.