Update faithfuld.R (#5015)

`tbl_df()` was deprecated in dplyr 1.0.0.
Please use `tibble::as_tibble()` instead.
This commit is contained in:
Y. Yu 2022-12-02 21:25:57 -05:00 committed by GitHub
parent fc191a07ac
commit 5f836abe98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ library(dplyr)
f2d <- MASS::kde2d(faithful$eruptions, faithful$waiting, h = c(1, 10), n = 75)
faithfuld <- expand.grid(eruptions = f2d$x, waiting = f2d$y) %>%
tbl_df() %>%
as_tibble() %>%
mutate(density = as.vector(f2d$z))
devtools::use_data(faithfuld, overwrite = TRUE)