Description on 'values_fn' in the documentation of pivot_wider does not make sense

It reads

Optionally, a named list providing a function that will be applied to the  `value`  in each cell in the output. You will typically use this when the combination of  `id_cols`  and  `value`  column does not uniquely identify an observation.

I believe it should be

Optionally, a named list providing a function that will be applied to the  `value`  in each cell in the output. You will typically use this when the combination of  `id_cols`  and  `name`  column does not uniquely identify an observation.

Am I right?

I think you are correct. Maybe wait for a few other users to chime in and then raise a documentation-related issue on the GitHub.

1 Like