Skip to content
Prev 383149 / 398502 Next

a simple reshape

Hello,

That function is new (tidyr 1.0.0) and exists in

packageVersion('tidyverse')
#[1] ?1.3.0?
packageVersion('tidyr')
#[1] ?1.0.2?

 From the help page ?pivot_wider:

Details

pivot_wider() is an updated approach to spread(), designed to be both 
simpler to use and to handle more use cases. We recommend you use 
pivot_wider() for new code; spread() isn't going away but is no longer 
under active development.


So you must update your packages.

Hope this helps,

Rui Barradas


?s 20:17 de 03/04/20, Yuan Chun Ding escreveu: