error with rowwise function

I followed the vignette('rowwise') and I got the error like Error in rowwise(., id) : unused argument (id)

df <- tibble(id = 1:6, w = 10:15, x = 20:25, y = 30:35, z = 40:45)
rf <- df %>% rowwise(id)

The packages version as shown in the following:

[1] forcats_0.5.0   stringr_1.4.0   dplyr_0.8.5     purrr_0.3.3     readr_1.3.1     tidyr_1.0.2     tibble_3.0.0    ggplot2_3.3.0  
[9] tidyverse_1.3.0

The vignette you've linked to is for the development version of dplyr (which will soon be released as 1.0.0). Since you've got version 0.8.5 installed, I presume this functionality has been recently added in the new version.

You could try out the development version if you wish by running devtools::install_github("tidyverse/dplyr").

1 Like

okay, thank you so much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.