Skip to content

Commit 72942ac

Browse files
committed
Remove most references to factors, closes #1151
1 parent 09b54c1 commit 72942ac

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

README.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ You can also create a new tibble from column vectors with `tibble()`:
6464
tibble(x = 1:5, y = 1, z = x^2 + y)
6565
```
6666

67-
`tibble()` does much less than `data.frame()`: it never changes the type of the inputs (e.g. it never converts strings to factors!), it never changes the names of variables, it only recycles inputs of length 1, and it never creates `row.names()`. You can read more about these features in `vignette("tibble")`.
67+
`tibble()` does much less than `data.frame()`: it never changes the type of the inputs (e.g. it keeps list columns unchanged, and never converts strings to factors!), it never changes the names of variables, it only recycles inputs of length 1, and it never creates `row.names()`. You can read more about these features in `vignette("tibble")`.
6868

6969
You can define a tibble row-by-row with `tribble()`:
7070

@@ -78,7 +78,7 @@ tribble(
7878

7979
## Related work
8080

81-
The tibble print method draws inspiration from [data.table](https://rdatatable.gitlab.io/data.table), and [frame](https://github.com/patperry/r-frame). Like `data.table::data.table()`, `tibble()` doesn't coerce strings to factors by default, doesn't change column names, and doesn't use rownames.
81+
The tibble print method draws inspiration from [data.table](https://rdatatable.gitlab.io/data.table), and [frame](https://github.com/patperry/r-frame). Like `data.table::data.table()`, `tibble()` doesn't change column names and doesn't use rownames.
8282

8383
---
8484
## Code of Conduct

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ You can also create a new tibble from column vectors with [`tibble()`](https://t
6565
<span><span class='c'>#&gt; <span style='color: #555555;'>4</span> 4 1 17</span></span>
6666
<span><span class='c'>#&gt; <span style='color: #555555;'>5</span> 5 1 26</span></span></pre>
6767

68-
[`tibble()`](https://tibble.tidyverse.org/reference/tibble.html) does much less than [`data.frame()`](https://rdrr.io/r/base/data.frame.html): it never changes the type of the inputs (e.g. it never converts strings to factors!), it never changes the names of variables, it only recycles inputs of length 1, and it never creates [`row.names()`](https://rdrr.io/r/base/row.names.html). You can read more about these features in [`vignette("tibble")`](https://tibble.tidyverse.org/articles/tibble.html).
68+
[`tibble()`](https://tibble.tidyverse.org/reference/tibble.html) does much less than [`data.frame()`](https://rdrr.io/r/base/data.frame.html): it never changes the type of the inputs (e.g. it keeps list columns unchanged, and never converts strings to factors!), it never changes the names of variables, it only recycles inputs of length 1, and it never creates [`row.names()`](https://rdrr.io/r/base/row.names.html). You can read more about these features in `vignette("tibble")`.
6969

7070
You can define a tibble row-by-row with [`tribble()`](https://tibble.tidyverse.org/reference/tribble.html):
7171

@@ -83,7 +83,7 @@ You can define a tibble row-by-row with [`tribble()`](https://tibble.tidyverse.o
8383

8484
## Related work
8585

86-
The tibble print method draws inspiration from [data.table](https://rdatatable.gitlab.io/data.table), and [frame](https://github.com/patperry/r-frame). Like [`data.table::data.table()`](https://Rdatatable.gitlab.io/data.table/reference/data.table.html), [`tibble()`](https://tibble.tidyverse.org/reference/tibble.html) doesn’t coerce strings to factors by default, doesn’t change column names, and doesn’t use rownames.
86+
The tibble print method draws inspiration from [data.table](https://rdatatable.gitlab.io/data.table), and [frame](https://github.com/patperry/r-frame). Like [`data.table::data.table()`](https://Rdatatable.gitlab.io/data.table/reference/data.table.html), [`tibble()`](https://tibble.tidyverse.org/reference/tibble.html) doesn’t change column names and doesn’t use rownames.
8787

8888
------------------------------------------------------------------------
8989

tests/testthat/_snaps/vignette-tibble/tibble.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ vignette: >
1010

1111

1212
Tibbles are a modern take on data frames.
13-
They keep the features that have stood the test of time, and drop the features that used to be convenient but are now frustrating (i.e.
14-
converting character vectors to factors).
13+
They keep the features that have stood the test of time, and drop the features that used to be convenient but are now frustrating.
1514

1615

1716
```r

vignettes/tibble.Rmd

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ knitr::opts_chunk$set(
1717
```
1818

1919
Tibbles are a modern take on data frames.
20-
They keep the features that have stood the test of time, and drop the features that used to be convenient but are now frustrating (i.e.
21-
converting character vectors to factors).
20+
They keep the features that have stood the test of time, and drop the features that used to be convenient but are now frustrating.
2221

2322
```{r}
2423
library(tibble)

0 commit comments

Comments
 (0)