If you want to try these new functions (pivot_wide
and pivot long
), you need to install the development version of tidyr
:
devtools::install_github("tidyverse/tidyr")
.
But I have not managed to achieved it. I install a list of libraries except one, ( vctrs
) and I don't know if that's the problem.
When I run the next code:
mtcars_wide1 <- mtcars %>%
pivot_wide(names_from = "am",
values_from = "mpg")
R couldn't find the function.
Can you recommend me something?