executing examples with as_factor() errors. I think due to redundancy. Will investigate.

This commit is contained in:
Andreas Gammelgaard Damsbo 2024-11-20 12:40:29 +01:00
commit c86ae9a364
No known key found for this signature in database
13 changed files with 58 additions and 24 deletions

View file

@ -19,6 +19,7 @@ This is a wrapper of forcats::as_factor, which sorts numeric vectors before
factoring, but levels character vectors in order of appearance.
}
\examples{
\dontrun{
sample(seq_len(4), 20, TRUE) |>
var2fct(6) |>
summary()
@ -27,3 +28,4 @@ sample(letters, 20) |>
summary()
sample(letters[1:4], 20, TRUE) |> var2fct(6)
}
}